diff --git a/code-deploy.yml b/code-deploy.yml index b505bbe..af7d6c5 100644 --- a/code-deploy.yml +++ b/code-deploy.yml @@ -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 +