From 798f6ccba861ab5d0f9fca3f7e7542ef9beab6b4 Mon Sep 17 00:00:00 2001 From: Sibi Prabakaran Date: Wed, 30 Aug 2017 03:43:49 +0530 Subject: [PATCH] Add better explanation --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index c22b19c..2f13476 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,13 @@ run_locally: - bash deploy.sh ``` +Note how we are even able to execute a bash script named `deploy.sh` +above. Be sure to use `set -e` in your bash script to avoid +headaches. Hapistrano will stop the execution on non zero exit +codes. Without the usage of `set -e`, there is a possiblity that your +bash script may return a zero exit code even if your intermediate +command resulted in an error. + After creating a configuration file as above, deploying is as simple as: ```bash