Skip to content

Commit

Permalink
fix docker_setup; commit was removed from config.set()
Browse files Browse the repository at this point in the history
  • Loading branch information
dale-wahl committed Dec 14, 2023
1 parent f932f41 commit 0d1dc05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/docker_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def update_config_from_environment(CONFIG_FILE, config_parser):
config.set('flask.server_name', frontend_servername)
else:
config.set('flask.server_name', f"{frontend_servername}:{public_port}")
config.db.commit()

# Config file already exists; Update .env variables if they changed
else:
Expand Down Expand Up @@ -141,4 +142,4 @@ def update_config_from_environment(CONFIG_FILE, config_parser):

print(f"\nStarting app\n"
f"4CAT is accessible at:\n"
f"{'https' if config.get('flask.https', False) else 'http'}://{frontend_servername}{':'+str(public_port) if public_port != 80 else ''}\n")
f"{'https' if config.get('flask.https', False) else 'http'}://{config.get('flask.server_name')}\n")

0 comments on commit 0d1dc05

Please sign in to comment.