Skip to content

Instantly share code, notes, and snippets.

@azimidev
Forked from danharper/a.md
Last active April 18, 2025 17:05
Show Gist options
  • Save azimidev/f81e0c74a7574cee94f77f5df9389d77 to your computer and use it in GitHub Desktop.
Save azimidev/f81e0c74a7574cee94f77f5df9389d77 to your computer and use it in GitHub Desktop.

Revisions

  1. Amir Hassan Azimi renamed this gist Aug 4, 2016. 1 changed file with 0 additions and 0 deletions.
  2. Amir Hassan Azimi renamed this gist Aug 4, 2016. 1 changed file with 0 additions and 0 deletions.
  3. Amir Hassan Azimi renamed this gist Aug 4, 2016. 1 changed file with 0 additions and 0 deletions.
  4. Amir Hassan Azimi renamed this gist Aug 4, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. Amir Hassan Azimi revised this gist Aug 4, 2016. 1 changed file with 7 additions and 3 deletions.
    10 changes: 7 additions & 3 deletions a.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,11 @@
    Install Supervisor with `sudo apt-get install supervisor`. Ensure it's started with `sudo service supervisor restart`.
    Install Supervisor with `sudo apt-get install supervisor` in Unix or `brew install supervisor` in Mac OSX. Ensure it's started with `sudo service supervisor restart` in Unix or `brew services start supervisor` in Mac OSX.

    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`.
    In Unix 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`.

    In Mac OSX first run `supervisord -c /usr/local/etc/supervisord.ini` and in `/usr/local/etc/supervisor.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`.
    Now update Supervisor with: `sudo supervisorctl reread` in Unix and with: `brew services restart supervisor` in MAc OSX . And start using those changes with: `sudo supervisorctl update`.

    Now run your supervisor queues by `run_queue.sh`.
  6. @danharper danharper revised this gist Feb 21, 2014. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion a.md
    Original 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`.
    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`.
  7. @danharper danharper revised this gist Feb 21, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion a.md
    Original 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.
    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`.
  8. @danharper danharper revised this gist Feb 21, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion a.md
    Original 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).
    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.
  9. @danharper danharper created this gist Feb 21, 2014.
    3 changes: 3 additions & 0 deletions a.md
    Original 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.
    6 changes: 6 additions & 0 deletions laravel_queue.conf
    Original 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
    2 changes: 2 additions & 0 deletions run_queue.sh
    Original 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