This commit is contained in:
Andras Bacsai 2023-05-03 09:06:33 +02:00
parent c3cb5c7356
commit 6f3f31b872

View File

@ -1,9 +1,9 @@
#!/command/execlineb -P #!/command/execlineb -P
VERSION=$(php bootstrap/getVersion.php) VERSION=$(php bootstrap/getVersion.php)
echo "$VERSION"
if [ echo "$VERSION" | grep -q "nightly" ]; then # if [ echo "$VERSION" | grep -q "nightly" ]; then
php /var/www/html/artisan migrate:fresh --force # php /var/www/html/artisan migrate:fresh --force
php /var/www/html/artisan db:seed --class ProductionSeeder --force # php /var/www/html/artisan db:seed --class ProductionSeeder --force
else # else
php /var/www/html/artisan migrate --force --isolated php /var/www/html/artisan migrate --force --isolated
fi # fi