summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-04-10 18:44:45 +0200
committerAlon Levy <alon@pobox.com>2015-04-10 18:44:45 +0200
commitc3e271bbd9e1bfbdc5b54e8d3d822358224b0073 (patch)
tree53a300b95aedce9e492f1a4001af1c473d7c5101
parentad2ae9e1764767bbce6abba85324a03117d1d693 (diff)
run-local: don't run if build fails
-rwxr-xr-xrun-local.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/run-local.sh b/run-local.sh
index 570d0c3d..7fc63965 100755
--- a/run-local.sh
+++ b/run-local.sh
@@ -18,6 +18,7 @@ if [ ! -f $CONFIG ]; then
cp $EXAMPLE $CONFIG
fi
make # building css relies on Makefile
-ant -f build.ant deploy-local -DdefaultDomain=$DOMAIN -DtargetDomain=$DOMAIN
-cd deploy-local
-python2.7 bin/rz_server.py --config-dir etc
+ant -f build.ant deploy-local -DdefaultDomain=$DOMAIN -DtargetDomain=$DOMAIN && (
+ cd deploy-local
+ python2.7 bin/rz_server.py --config-dir etc
+)