Initial commit — Moon Household Budget
This commit is contained in:
19
moon-household-budget-handoff/docker/entrypoint.sh
Normal file
19
moon-household-budget-handoff/docker/entrypoint.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
# Runs before the app starts. Ensures the data dir exists and runs DB
|
||||
# migrations if the app uses them. Uncomment the lines that apply.
|
||||
set -e
|
||||
|
||||
mkdir -p /data/uploads/suggestions
|
||||
|
||||
# --- Database migrations (pick what the app uses, leave the rest commented) ---
|
||||
# Flask-Migrate / Alembic via Flask:
|
||||
# flask db upgrade
|
||||
# Raw Alembic:
|
||||
# alembic upgrade head
|
||||
# Django:
|
||||
# python manage.py migrate --noinput
|
||||
# python manage.py collectstatic --noinput
|
||||
# Plain SQLite with a schema file (only first run):
|
||||
# [ -f /data/app.db ] || sqlite3 /data/app.db < schema.sql
|
||||
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user