aboutsummaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
authorDaniel Meißner2016-10-15 20:46:05 +0200
committerDaniel Meißner2016-10-15 20:46:05 +0200
commit699fbfbacf8cbcb18a8239f10970ead5c2ac6ff6 (patch)
tree39fbae268bc76b5f632c92d1d6e08c67cb9af807 /deploy.sh
parent1871bc80d833e30de3d05c92e75b4ff93d2bfaa8 (diff)
parente065b7307ffc5d93883f9b20cf75a5afbec0e137 (diff)
Merge branch 'master' of mng.ber.c3voc.de:streaming-website
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/deploy.sh b/deploy.sh
index 3079a3c..2e1b822 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -1,8 +1,16 @@
#!/bin/sh
+
+find . -name "*.php" -print0 | xargs -0 -n1 php -l
+if [ $? -ne 0 ]; then
+ echo "not deploying b0rken code ;)"
+ exit 1
+fi
+
ssh voc@lb.dus.c3voc.de 'sudo sh' << EOT
cd /srv/nginx/streaming-website
git fetch origin
git reset --hard origin/master
chown -R voc:staff .
chown -R downloader configs
+./clear_cache
EOT