coolify/docker/prod-ssu/etc/s6-overlay/s6-rc.d/db-migration/up

10 lines
284 B
Plaintext
Raw Normal View History

2023-05-03 09:24:40 +02:00
#!/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