mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-21 23:35:09 +00:00
fix: push site_config.json with backup
This commit is contained in:
parent
a56e832d7e
commit
9e1841f494
1 changed files with 4 additions and 0 deletions
|
|
@ -176,6 +176,10 @@ def main():
|
||||||
folder = os.environ.get('BUCKET_DIR') + '/' + site + '/' + os.path.basename(db_file)[:15] + '/'
|
folder = os.environ.get('BUCKET_DIR') + '/' + site + '/' + os.path.basename(db_file)[:15] + '/'
|
||||||
upload_file_to_s3(db_file, folder, conn, bucket)
|
upload_file_to_s3(db_file, folder, conn, bucket)
|
||||||
|
|
||||||
|
# Archive site_config.json
|
||||||
|
site_config_file = os.path.join(os.getcwd(), site, 'site_config.json')
|
||||||
|
upload_file_to_s3(site_config_file, folder, conn, bucket)
|
||||||
|
|
||||||
public_files = details.get('public_files', {}).get('file_path')
|
public_files = details.get('public_files', {}).get('file_path')
|
||||||
if public_files:
|
if public_files:
|
||||||
folder = os.environ.get('BUCKET_DIR') + '/' + site + '/' + os.path.basename(public_files)[:15] + '/'
|
folder = os.environ.get('BUCKET_DIR') + '/' + site + '/' + os.path.basename(public_files)[:15] + '/'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue