Skip to content

Commit

Permalink
Merge pull request #481 from edwinabot/configurable-host
Browse files Browse the repository at this point in the history
Make app host configurable
  • Loading branch information
saleh-mir authored Oct 17, 2024
2 parents 765109e + a554d9b commit 6ae63de
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jesse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,14 @@ def run() -> None:
else:
port = 9000

if 'APP_HOST' in ENV_VALUES:
host = ENV_VALUES['APP_HOST']
else:
host = "0.0.0.0"

# run the main application
process_manager.flush()
uvicorn.run(fastapi_app, host="0.0.0.0", port=port, log_level="info")
uvicorn.run(fastapi_app, host=host, port=port, log_level="info")


@fastapi_app.post('/general-info')
Expand Down

0 comments on commit 6ae63de

Please sign in to comment.