---
- name: restart nginx
  service: name=nginx state=restarted
- name: Update timezone
  command: dpkg-reconfigure --frontend noninteractive tzdata
- name: Test sudoers and make it live
  shell: visudo -c -f /etc/sudoers.d/deploy.test && cp -f /etc/sudoers.d/deploy.test /etc/sudoers.d/deploy
- name: Export to upstart
  command: foreman export upstart /etc/init -u deploy -a morph -f /home/deploy/Procfile.production --root /var/www/current
  notify: Restart morph service
- name: Restart morph service
  service: name=morph state=restarted

- name: reload monit
  service: name=monit state=reloaded

---
- name: restart nginx
  service: name=nginx state=restarted
- name: Update timezone
  command: dpkg-reconfigure --frontend noninteractive tzdata
- name: Test sudoers and make it live
  shell: visudo -c -f /etc/sudoers.d/deploy.test && cp -f /etc/sudoers.d/deploy.test /etc/sudoers.d/deploy
- name: Export to upstart
  command: foreman export upstart /etc/init --user deploy --app morph --procfile /home/deploy/Procfile.production --root /var/www/current --concurrency="worker=2,faye=1"
  notify: Restart morph service
- name: Restart morph service
  service: name=morph state=restarted

- name: reload monit
  service: name=monit state=reloaded

Create 2 Sidekiq processes in production instead of 1
Create 2 Sidekiq processes in production instead of 1

CPU seems to be becoming a bottleneck with Sidekiq (see discussion on
issue #992) and this allows 2 of the CPU cores to be used instead of 1.
