2022-12-01 13:48:10 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
2022-12-13 15:17:49 +00:00
|
|
|
python manage.py wait_for_db
|
2022-12-01 13:48:10 +00:00
|
|
|
python manage.py migrate
|
2023-02-21 06:01:43 +00:00
|
|
|
|
2023-11-13 14:59:09 +00:00
|
|
|
# Register instance
|
2023-11-15 14:52:14 +00:00
|
|
|
python manage.py register_instance
|
2023-11-13 14:59:09 +00:00
|
|
|
# Load the configuration variable
|
2023-11-15 14:52:14 +00:00
|
|
|
python manage.py configure_instance
|
2023-11-13 10:27:19 +00:00
|
|
|
# Create the default bucket
|
|
|
|
python bin/bucket_script.py
|
2023-11-08 11:13:04 +00:00
|
|
|
|
2023-11-07 12:35:38 +00:00
|
|
|
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 -
|