Skip to content

Instantly share code, notes, and snippets.

@budiantoip
Last active October 19, 2022 12:14
Show Gist options
  • Save budiantoip/b842807d18be48ec00501d8283202986 to your computer and use it in GitHub Desktop.
Save budiantoip/b842807d18be48ec00501d8283202986 to your computer and use it in GitHub Desktop.
Supervisor Setup

References :

Supervisor Setup

sudo vim /etc/supervisor/conf.d/laravel-app.ini

# and copy and paste these lines, then save it
[program:laravel-app-worker]
command=php /home/laravel-app/public_html/pheanstalk.php
autostart=true
autorestart=true
user=bob
redirect_stderr=true
stdout_logfile=/home/laravel-app/public_html/logs/worker.log

# restart the supervisor service
service supervisor restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment