Skip to content

Commit

Permalink
Move to __main__.py to allow running as a module from pip
Browse files Browse the repository at this point in the history
  • Loading branch information
UpstreamData committed Sep 4, 2024
1 parent 798f950 commit 7064c53
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions goosebit/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import uvicorn

from goosebit import app
from goosebit.settings import config

if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=config.port)

0 comments on commit 7064c53

Please sign in to comment.