mirror of
https://github.com/reconurge/flowsint.git
synced 2026-05-08 04:38:38 -05:00
16 lines
327 B
Bash
Executable File
16 lines
327 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
# Ensure virtualenv binaries are in PATH
|
|
export PATH="/app/flowsint-api/.venv/bin:$PATH"
|
|
|
|
if [ "$SKIP_MIGRATIONS" != "true" ]; then
|
|
echo "Running database migrations..."
|
|
alembic upgrade head
|
|
else
|
|
echo "Skipping database migrations (SKIP_MIGRATIONS=true)..."
|
|
fi
|
|
|
|
echo "Starting application..."
|
|
exec "$@"
|