Skip to content

Commit

Permalink
update app config w/ data_folder_path
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienChampagnol committed Jul 17, 2024
1 parent 3f12506 commit ead8860
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/geodeapp_back/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def run_server():
parser.add_argument('-d', '--debug', default=FLASK_DEBUG, help='Whether to run in debug mode', action='store_true')
parser.add_argument('-dfp', '--data_folder_path', type=str, default=DEFAULT_DATA_FOLDER_PATH, help='Path to the folder where data is stored')
args = parser.parse_args()
app.config.update(DATA_FOLDER_PATH=args.data_folder_path)
print(f"Port: {args.port}, Debug: {args.debug}, Data folder path: {args.data_folder_path}", flush=True)
app.run(debug=args.debug, host="0.0.0.0", port=args.port, ssl_context=SSL)

Expand Down

0 comments on commit ead8860

Please sign in to comment.