feat: add env variable to disable db migrations on startup (#1179)

This commit is contained in:
Meier Lukas
2024-09-26 18:54:28 +02:00
committed by GitHub
parent 2dd21d6688
commit a30be7bc1e

View File

@@ -1,5 +1,10 @@
# Run migrations
node ./db/migrations/$DB_DIALECT/migrate.cjs ./db/migrations/$DB_DIALECT
if [ $DB_MIGRATIONS_DISABLED = "true" ]; then
echo "DB migrations are disabled, skipping"
else
echo "Running DB migrations"
node ./db/migrations/$DB_DIALECT/migrate.cjs ./db/migrations/$DB_DIALECT
fi
# Start nginx proxy
# 1. Replace the HOSTNAME in the nginx template file