Skip to content

Instantly share code, notes, and snippets.

@nuttt
Created March 23, 2015 21:48
Show Gist options
  • Select an option

  • Save nuttt/9498f973a4a0dddd3720 to your computer and use it in GitHub Desktop.

Select an option

Save nuttt/9498f973a4a0dddd3720 to your computer and use it in GitHub Desktop.
Beanstalkd & Supervisor for QC.HAII

1. Install Beanstalkd & Supervisor

$ su -c 'rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm'

$ sudo yum install beanstalkd -y
$ sudo chkconfig beanstalkd on

$ sudo yum install supervisor
$ sudo chkconfig supervisord on

2. Start Beanstalkd

$ sudo service beanstalkd start

3. Config Supervisor Task

Add to bottom of /etc/supervisord.conf

[program:laravel-queue-listener]
command=php artisan queue:listen --env=production --timeout=0
directory=/home/haii/html/HAII
logfile=/home/haii/html/HAII/app/storage/logs/supervisord.log

4. Start Supervisor

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