feat: add env variable to disable db migrations on startup (#1179)
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
# Run migrations
|
# 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
|
# Start nginx proxy
|
||||||
# 1. Replace the HOSTNAME in the nginx template file
|
# 1. Replace the HOSTNAME in the nginx template file
|
||||||
|
|||||||
Reference in New Issue
Block a user