mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-10-07 19:34:22 +00:00
14 lines
522 B
Bash
14 lines
522 B
Bash
#!/bin/bash
|
|
|
|
# Use settings template as default settings if the settings does not file already exist
|
|
SETTINGS_FILE=/volumes/data/settings.ini
|
|
if [[ ! -f "$SETTINGS_FILE" ]]; then
|
|
cp deploy/settings_template.ini "$SETTINGS_FILE" \
|
|
&& echo "Initialized default settings at $SETTINGS_FILE"
|
|
fi
|
|
|
|
# Generate secrets if the secrets file does not already exist
|
|
./manage.py setup generate-secrets
|
|
|
|
# Start the server
|
|
gunicorn --bind "0.0.0.0:80" --workers "5" --log-file "/volumes/logs/gunicorn.log" "run:create_app()"
|