Sleep 5seconds before deploying to new server

This commit is contained in:
2016-01-19 10:51:14 -05:00
parent 57104ac74a
commit 81c3e9cefc

View File

@@ -11,6 +11,8 @@
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
@@ -21,3 +23,6 @@
command: chdir=/root/wrestlingApp git pull origin master
- name: Restart and rebuild docker container
command: chdir=/root/wrestlingApp bash rails-worker-prod.sh wrestlingdev-app
- name: Wait 5 seconds for server to warm up
command: sleep 5s