-
-
Save folkevil/e47fa957dab13617e4fad7b7404fa37f to your computer and use it in GitHub Desktop.
Revisions
-
danharper revised this gist
Feb 21, 2014 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,7 @@ Install Supervisor with `sudo apt-get install supervisor`. Ensure it's started with `sudo service supervisor restart`. In `/etc/supervisord/conf.d/` create a `.conf` file. In this example, `laravel_queue.conf` (contents below). Give it execute permissions: `chmod +x laravel_queue.conf`. This file points at `/usr/local/bin/run_queue.sh`, so create that file there. Give this execute permissions, too: `chmod +x run_queue.sh`. Now update Supervisor with: `sudo supervisorctl reread`. And start using those changes with: `sudo supervisorctl update`. -
danharper revised this gist
Feb 21, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,3 @@ In `/etc/supervisord/conf.d/` create a `.conf` file. In this example, `laravel_queue.conf` (contents below). Give it execute permissions: `chmod +x laravel_queue.conf`. This file points at `/usr/local/bin/run_queue.sh`, so create that file there. Give this execute permissions, too: `chmod +x run_queue.sh`. -
danharper revised this gist
Feb 21, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,3 @@ In `/etc/supervisord/conf.d/` create a `.conf` file. In this example, `laravel_queue.conf` (contents below). Give it execute permissions: `chmod +x laravel_queue.conf`. This file points at `/usr/local/bin/run_queue.sh`, so create that file there. -
danharper created this gist
Feb 21, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ In `/etc/supervisord/conf.d/` create a `.conf` file. In this example, `laravel_queue.conf` (contents below). This file points at `/usr/local/bin/run_queue.sh`, so create that file there. This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ [program:laravel_queue] command=/usr/local/bin/run_queue.sh autostart=true autorestart=true stderr_logfile=/var/log/laraqueue.err.log stdout_logfile=/var/log/laraqueue.out.log This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ #!/bin/bash php /path/to/AppName/artisan --env=production --timeout=240 queue:listen