mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
18 lines
479 B
Python
18 lines
479 B
Python
import os
|
|
import uvicorn
|
|
|
|
if __name__ == "__main__":
|
|
os.environ.setdefault(
|
|
"DJANGO_SETTINGS_MODULE", "plane.settings.production"
|
|
)
|
|
uvicorn.run(
|
|
"plane.asgi:application",
|
|
host=os.environ.get("HOST", "0.0.0.0"),
|
|
port=os.environ.get("PORT", 8000),
|
|
ws="auto",
|
|
workers=int(os.environ.get("GUNICORN_WORKERS", 1)),
|
|
log_level=os.environ.get("LOG_LEVEL", "info"),
|
|
lifespan="off",
|
|
access_log="on",
|
|
)
|