Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

check with sh

Andras Bacsai476abd30f404
diff --git a/docker/prod-ssu/etc/s6-overlay/s6-rc.d/db-migration/up b/docker/prod-ssu/etc/s6-overlay/s6-rc.d/db-migration/up
index 250d5d8b14..42594c7377 100644
--- a/docker/prod-ssu/etc/s6-overlay/s6-rc.d/db-migration/up
+++ b/docker/prod-ssu/etc/s6-overlay/s6-rc.d/db-migration/up
@@ -1,2 +1,9 @@
-#!/command/execlineb -P
-php /var/www/html/artisan migrate --force --isolated
+#!/bin/sh
+VERSION=$(php bootstrap/getVersion.php)
+
+if echo "$VERSION" | grep -q "nightly"; then
+ php /var/www/html/artisan migrate:fresh --force
+ php /var/www/html/artisan db:seed --class ProductionSeeder --force
+else
+ php /var/www/html/artisan migrate --force --isolated
+fi