* fix: optimize api server startup * fix: update startup command to handle multiple editions * fix: move collectstatic command to entrypoint script for improved Docker setup * fix: collect static to startup script --------- Co-authored-by: Pratapa Lakshmi <[email protected]>
10 lines
292 B
Bash
Executable File
10 lines
292 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
export SKIP_ENV_VAR=0
|
|
|
|
# Run consolidated startup
|
|
python manage.py startup cloud
|
|
|
|
exec gunicorn -w "$GUNICORN_WORKERS" -k uvicorn.workers.UvicornWorker plane.asgi:application --bind 0.0.0.0:"${PORT:-8000}" --max-requests 1200 --max-requests-jitter 1000 --access-logfile -
|