mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2025-01-20 17:11:30 +00:00
14 lines
498 B
Bash
Executable file
14 lines
498 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Use the settings template as default settings if the settings file doesn't 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 doesn't already exist
|
|
./manage.py setup generate-secrets
|
|
|
|
# Start the server
|
|
gunicorn --bind 0.0.0.0:80 --workers 4 --log-level error "run:create_app()"
|