Skip to content

Commit

Permalink
Merge pull request #5 from youzhe0305/patch-2
Browse files Browse the repository at this point in the history
Docs: Add comment in main.py
  • Loading branch information
louis70109 authored May 15, 2024
2 parents 384e906 + 009e43a commit 595e504
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def read_root():
if __name__ == "__main__":
import uvicorn
port = int(os.environ.get('PORT', default=8000))
# activate debug mode when developer mode is on
debug = True if os.environ.get(
'API_ENV', default='develop') == 'develop' else False
uvicorn.run("main:app", host="0.0.0.0", port=8080, reload=True)

0 comments on commit 595e504

Please sign in to comment.