|
|
|
@ -5,13 +5,12 @@ set -e
|
|
|
|
if [[ "${MIGRATION_ENABLED}" == "true" ]]; then
|
|
|
|
if [[ "${MIGRATION_ENABLED}" == "true" ]]; then
|
|
|
|
echo "Running migrations"
|
|
|
|
echo "Running migrations"
|
|
|
|
flask upgrade-db
|
|
|
|
flask upgrade-db
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Pure migration mode
|
|
|
|
# Pure migration mode
|
|
|
|
if [[ "${MODE}" == "migration" ]]; then
|
|
|
|
if [[ "${MODE}" == "migration" ]]; then
|
|
|
|
echo "Migration completed, exiting normally"
|
|
|
|
echo "Migration completed, exiting normally"
|
|
|
|
exit 0
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "${MODE}" == "worker" ]]; then
|
|
|
|
if [[ "${MODE}" == "worker" ]]; then
|
|
|
|
|
|
|
|
|
|
|
|
|