mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
bd5ebc2760
* dev: update create bucket script * dev: update patch endpoint for instance configuration * dev: add google client secret and default values for ADMIN_EMAIL and LICENSE_ENGINE_BASE_URL
21 lines
639 B
Bash
Executable File
21 lines
639 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
python manage.py wait_for_db
|
|
python manage.py migrate
|
|
|
|
# Set default value for ENABLE_REGISTRATION
|
|
ENABLE_REGISTRATION=${ENABLE_REGISTRATION:-1}
|
|
|
|
# Check if ENABLE_REGISTRATION is not set to '0'
|
|
if [ "$ENABLE_REGISTRATION" != "0" ]; then
|
|
# Register instance
|
|
python manage.py register_instance
|
|
# Load the configuration variable
|
|
python manage.py configure_instance
|
|
fi
|
|
|
|
# Create the default bucket
|
|
python manage.py create_bucket
|
|
|
|
exec gunicorn -w $GUNICORN_WORKERS -k uvicorn.workers.UvicornWorker plane.asgi:application --bind 0.0.0.0:8000 --max-requests 1200 --max-requests-jitter 1000 --access-logfile -
|