mirror of
https://github.com/pterodactyl/development.git
synced 2025-12-10 10:44:48 -06:00
21 lines
480 B
Bash
21 lines
480 B
Bash
#!/usr/bin/env bash
|
|
cd /var/www/html || exit 1
|
|
|
|
if [ ! -f ".env" ]; then
|
|
cp .env.example .env
|
|
fi
|
|
|
|
sed -i "s/APP_ENV=.*/APP_ENV=local/" .env
|
|
sed -i "s/APP_DEBUG=.*/APP_DEBUG=true/" .env
|
|
|
|
composer install --no-interaction --prefer-dist --no-scripts --no-progress
|
|
php artisan config:clear
|
|
yarn install --no-progress
|
|
|
|
sudo chmod -R 775 storage/* bootstrap/cache
|
|
|
|
sudo supervisorctl reread
|
|
sudo supervisorctl update
|
|
sudo supervisorctl start pteroq:*
|
|
sudo supervisorctl restart nginx
|