Add start.sh script for laravel service to fix command interpolation issue

This commit is contained in:
m.marjorie 2025-03-24 08:24:43 +00:00
parent 37b9d1380d
commit 5dc4c707ee
1 changed files with 7 additions and 0 deletions

7
start.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
sleep 10
if [ -z "$(grep '^APP_KEY=' /var/www/html/.env)" ]; then
php artisan key:generate
fi
php artisan migrate --force
php-fpm