Skip to content

Commit

Permalink
Feat: Let's go back to Roadrunner
Browse files Browse the repository at this point in the history
Feat: Prod provision update for Roadrunner
  • Loading branch information
nikspyratos committed Jan 20, 2024
1 parent 60c914f commit 68dcbe2
Show file tree
Hide file tree
Showing 3 changed files with 1,091 additions and 519 deletions.
22 changes: 10 additions & 12 deletions bin/provision_prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,7 @@ caddy reload
echo "Installing composer packages";sleep 1;
composer install --no-interaction --optimize-autoloader --no-dev
# Octane
sudo add-apt-repository ppa:openswoole/ppa -y
sudo apt update
sudo apt install -y php8.3-openswoole
# Supervisor
echo "Setting up Supervisor for queue work";sleep 1;
sudo apt-get install -y supervisor
sudo cp templates/octane.conf /etc/supervisor/conf.d/
sudo cp templates/queue.conf /etc/supervisor/conf.d/
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start octane
sudo supervisorctl start queue
artisan octane:install --server=roadrunner -n
# Application
echo "Setting up application";sleep 1;
npm install
Expand All @@ -57,4 +46,13 @@ php artisan migrate --force --seed
php artisan storage:link
echo "Installing Laravel cron schedule";sleep 1;
crontab templates/cron
# Supervisor
echo "Setting up Supervisor for queue work";sleep 1;
sudo apt-get install -y supervisor
sudo cp templates/octane.conf /etc/supervisor/conf.d/
sudo cp templates/queue.conf /etc/supervisor/conf.d/
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start octane
sudo supervisorctl start queue
echo -e "Installation complete! Please change your Caddyfile's instances of APP_PATH and your .env DEPLOYMENT_PATH value to $app_path";
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
"pboivin/filament-peek": "^2.0",
"pxlrbt/filament-environment-indicator": "^2.0",
"spatie/cpu-load-health-check": "^1.0",
"spatie/laravel-activitylog": "^4.7"
"spatie/laravel-activitylog": "^4.7",
"spiral/roadrunner-cli": "^2.6",
"spiral/roadrunner-http": "^3.3"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.8",
Expand Down
Loading

0 comments on commit 68dcbe2

Please sign in to comment.