umfassende updates
This commit is contained in:
parent
3331f08091
commit
50cd802d33
16 changed files with 441 additions and 78 deletions
|
|
@ -192,6 +192,11 @@ def main():
|
|||
action="store_true",
|
||||
help="DB-Sync überspringen (keine Daten in die entfernte DB einspielen).",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--db-only",
|
||||
action="store_true",
|
||||
help="Nur den DB-Sync ausführen, ohne Dateien per FTP hochzuladen.",
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
if not os.path.isfile(CRED_FILE):
|
||||
|
|
@ -211,6 +216,10 @@ def main():
|
|||
else:
|
||||
sync_database(creds)
|
||||
|
||||
if args.db_only:
|
||||
print("\nDB-Sync abgeschlossen (ohne Upload) ->", APP_URL)
|
||||
return
|
||||
|
||||
ftp = FTP()
|
||||
ftp.connect(FTP_HOST, FTP_PORT)
|
||||
ftp.login(creds["ftp_user"], creds["ftp_pw"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue