mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-10-11 19:54:21 +00:00
Default settings before secrets generation
This commit is contained in:
parent
b160a6e2b4
commit
f41918e08c
1 changed files with 3 additions and 3 deletions
6
init.sh
6
init.sh
|
@ -1,8 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Generate secrets if the secrets file does not already exist
|
||||
./manage.py setup generate-secrets
|
||||
|
||||
# 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
|
||||
|
@ -10,5 +7,8 @@ if [[ ! -f "$SETTINGS_FILE" ]]; then
|
|||
&& 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()"
|
||||
|
|
Loading…
Reference in a new issue