Skip to content

Commit

Permalink
Merge pull request #18 from Geode-solutions/fix/host
Browse files Browse the repository at this point in the history
Fix/host
  • Loading branch information
JulienChampagnol authored Oct 22, 2024
2 parents c27f1fa + 1d2b71d commit e01afa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/geodeapp_back/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def root():

def run_server():
parser = argparse.ArgumentParser(prog='GeodeApp-Back', description='Backend server for GeodeApp')
parser.add_argument('-h', '--host', type=int, default=DEFAULT_HOST, help='Host to run on')
parser.add_argument('--host', type=str, default=DEFAULT_HOST, help='Host to run on')
parser.add_argument('-p', '--port', type=int, default=DEFAULT_PORT, help='Port to listen on')
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')
Expand All @@ -63,7 +63,7 @@ def run_server():
app.config.update(DATA_FOLDER_PATH=args.data_folder_path)
app.config.update(DESKTOP_APP=args.desktop)
flask_cors.CORS(app, origins=args.allowed_origin)
print(f"Port: {args.port}, Debug: {args.debug}, Data folder path: {args.data_folder_path}, Desktop mode: {args.desktop}, Origins: {args.allowed_origin}", flush=True)
print(f"Host: {args.host}, Port: {args.port}, Debug: {args.debug}, Data folder path: {args.data_folder_path}, Desktop mode: {args.desktop}, Origins: {args.allowed_origin}", flush=True)
app.run(debug=args.debug, host="0.0.0.0", port=args.port, ssl_context=SSL)


Expand Down

0 comments on commit e01afa2

Please sign in to comment.