Separated workers and webservers
This commit is contained in:
8
roles/worker/tasks/main.yml
Normal file
8
roles/worker/tasks/main.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
# This task clones the repo and runs the worker docker container.
|
||||
#
|
||||
- name: Copy the code from repository
|
||||
git: repo={{ repository }} dest=/var/www/html/
|
||||
|
||||
- name: Create and run delayed job worker
|
||||
shell: cd /var/www/html/ && bash rails-worker-prod.sh wrestlingdev-worker
|
||||
Reference in New Issue
Block a user