Created
March 23, 2018 14:23
-
-
Save mariapaulinar/f2ed8d2a063fa3aa58124eb21bc8c801 to your computer and use it in GitHub Desktop.
Instalar y configurar supervisor en Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*** Instalar supervisor ***/ | |
sudo apt-get install supervisor | |
/*** Configurar en: /etc/supervisor/conf.d ***/ | |
[program:laravel-worker] | |
process_name=%(program_name)s_%(process_num)02d | |
command=php /home/forge/app.com/artisan queue:work sqs --sleep=3 --tries=3 | |
autostart=true | |
autorestart=true | |
user=forge | |
numprocs=8 | |
redirect_stderr=true | |
stdout_logfile=/home/forge/app.com/worker.log | |
/*** Fin conf.d ***/ | |
/*** Iniciar supervisor ***/ | |
sudo supervisorctl reread | |
sudo supervisorctl update | |
sudo supervisorctl start laravel-worker:* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment