mirror of
https://github.com/Cybrarist/Discount-Bandit.git
synced 2026-11-24 19:49:54 +01:00
if .env is created, app key won't be generated and app will crash. Took 55 minutes
29 lines
653 B
Bash
Executable File
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
|
|
|