Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

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

Meier Lukasa30be7bc1e3b
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