Re-organized all files and added a Vagrantfile

This commit is contained in:
2016-02-02 11:40:47 -05:00
parent dd4fd53ce7
commit 8a55e9f946
19 changed files with 157 additions and 96 deletions

28
playbooks/code-deploy.yml Normal file
View File

@@ -0,0 +1,28 @@
---
# This playbook deploys the whole application stack for wrestlingdev
#
- hosts: webservers
remote_user: root
serial: 1
tasks:
- name: Refresh code
command: chdir=/root/wrestlingApp git pull origin master
- name: Restart and rebuild docker container
command: chdir=/root/wrestlingApp bash rails-prod.sh wrestlingdev-app
- name: Wait 5 seconds for server to warm up
command: sleep 5s
- hosts: workers
remote_user: root
serial: 1
tasks:
- name: Refresh code
command: chdir=/root/wrestlingApp git pull origin master
- name: Restart and rebuild docker container
command: chdir=/root/wrestlingApp bash rails-worker-prod.sh wrestlingdev-worker
- name: Wait 5 seconds for server to warm up
command: sleep 5s