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 authored and b-rowan committed Aug 31, 2024
1 parent bc48b10 commit 39033fb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions goosebit/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import logging.config

import uvicorn

from goosebit import app
from goosebit.settings import config

logging.config.dictConfig(config.logging)


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

0 comments on commit 39033fb

Please sign in to comment.