Sleep 5seconds before deploying to new server
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user