Update app templates and routes
This commit is contained in:
12
docker/entrypoint.sh
Normal file
12
docker/entrypoint.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env sh
|
||||
set -eu
|
||||
|
||||
# Ensure DB schema exists
|
||||
flask --app app ensure-db
|
||||
|
||||
# Optional: create/update initial admin account
|
||||
if [ -n "${ADMIN_PASS:-}" ]; then
|
||||
flask --app app init-db --admin-email "${ADMIN_EMAIL:-admin@admin.admin}" --admin-pass "${ADMIN_PASS}"
|
||||
fi
|
||||
|
||||
exec gunicorn -w "${GUNICORN_WORKERS:-2}" -b "${GUNICORN_BIND:-0.0.0.0:8000}" wsgi:app
|
||||
Reference in New Issue
Block a user