16 lines
No EOL
474 B
Bash
16 lines
No EOL
474 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# Run database migrations/initialization
|
|
echo "Running database initialization..."
|
|
poetry run flask --app src/anonchat init-db
|
|
echo "Database initialization complete."
|
|
|
|
# Run database migrations to ensure schema is up to date
|
|
echo "Running database migrations..."
|
|
poetry run flask --app src/anonchat run-migrations
|
|
echo "Database migrations complete."
|
|
|
|
# Execute the command passed as arguments (CMD in Dockerfile)
|
|
echo "Executing command: $@"
|
|
exec "$@" |