diff --git a/scripts/run.sh b/scripts/run.sh index 41779881b..386a48cee 100644 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -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