darabos's picture
Find plugins by module name instead of namespace module.
fc43558
raw
history blame
302 Bytes
import uvicorn
from .main import app # noqa: F401
import os
def main():
port = int(os.environ.get("PORT", "8000"))
reload = bool(os.environ.get("LYNXKITE_RELOAD", ""))
uvicorn.run("lynxkite_app.main:app", host="0.0.0.0", port=port, reload=reload)
if __name__ == "__main__":
main()