Files
YNWA Fawzy 7c08d41b46 - bump versions
- revert database path in docker compose
- update compose install / update in docker.

Took 54 minutes
2025-01-03 15:46:16 +04:00

43 lines
911 B
Bash
Executable File

#!/bin/sh
if [ ! -f "vendor/autoload.php" ]; then
echo "Installing Composer"
composer install --no-interaction --no-progress
else
composer dump-autoload
composer update --no-interaction --no-progress
fi
if [ ! -f "/logs" ]; then
mkdir /logs
fi
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