[deployment] Ensure lifecycle scripts fail if something goes wrong

pull/246/head
Paul Schoenfelder 7 years ago
parent 5837c85dce
commit 268c01701f
  1. 2
      bin/deployment/build
  2. 2
      bin/deployment/health_check
  3. 2
      bin/deployment/migrate
  4. 2
      bin/deployment/start
  5. 2
      bin/deployment/stop

@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -x
set -e
cd /opt/app || exit 1

@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -x
set -e
# Timeout after 2 min if we still haven't gotten a response
timeout 120s bash <<EOT

@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -x
set -e
cd /opt/app || exit 1

@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -x
set -e
systemctl start explorer.service

@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -x
set -e
if systemctl is-active explorer.service; then
systemctl stop explorer.service

Loading…
Cancel
Save