Skip to content

Commit

Permalink
MWE for how to set up app to be runnable with gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaris committed Apr 30, 2024
1 parent 39a167d commit 74246ab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gilda/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,3 +298,10 @@ def _mount_home_redirect(app):
def home_redirect():
"""Redirect the home url to the API documentation."""
return redirect("/apidocs")


if __name__ == '__main__':
app = get_app()
app.run()
else:
gunicorn_app = get_app()

0 comments on commit 74246ab

Please sign in to comment.