Skip to content

Commit

Permalink
Add comment in main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
youzhe0305 authored May 15, 2024
1 parent 56a1c14 commit 009e43a
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 009e43a

Please sign in to comment.