Files
YNWA Fawzy c7b7ea241c hotfix:
if .env is created, app key won't be generated and app will crash.

Took 55 minutes
2024-10-08 18:18:09 +04:00

29 lines
653 B
Bash
Executable File

#!/bin/sh
if [ ! -f ".env" ] || ! grep -q . ".env" ; then
cp .env.example .env
php artisan key:generate --force
fi
php artisan storage:link
php artisan config:clear
php artisan cache:clear
php artisan optimize:clear
printenv > /etc/environment
php artisan migrate --force --seed
php artisan discount:fill-supervisor-workers
php artisan icons:cache
php artisan config:cache
php artisan make:filament-user --name=$DEFAULT_USER --email=$DEFAULT_EMAIL --password=$DEFAULT_PASSWORD
php artisan octane:install --server=frankenphp
Xvfb :99 -screen 0 2000x2000x24 & export DISPLAY=:99
supervisord -c /etc/supervisor/conf.d/supervisord.conf