mirror of
https://github.com/makeplane/plane.git
synced 2025-12-29 00:24:56 +01:00
19 lines
558 B
Bash
Executable File
19 lines
558 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
export SKIP_ENV_VAR=0
|
|
|
|
python manage.py wait_for_db
|
|
# Wait for migrations
|
|
python manage.py wait_for_migrations
|
|
|
|
# Clear Cache before starting to remove stale values
|
|
python manage.py clear_cache
|
|
|
|
# Register instance if INSTANCE_ADMIN_EMAIL is set
|
|
if [ -n "$INSTANCE_ADMIN_EMAIL" ]; then
|
|
python manage.py setup_instance $INSTANCE_ADMIN_EMAIL
|
|
fi
|
|
|
|
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 -
|