aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaZderMind2016-12-28 17:36:05 +0100
committerMaZderMind2016-12-28 17:36:05 +0100
commit0fec82ef10af44f53640bec4e472d374a9f8f5f3 (patch)
treee6059037d2e1f992f936838b5cc4ea458aa8f6e3
parent40bff62daf79cb8e1507c9f93d517b728bcfbf14 (diff)
re-download schedule after deploy
Diffstat (limited to '')
-rwxr-xr-xdeploy.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/deploy.sh b/deploy.sh
index 2753162..3deb544 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -44,12 +44,21 @@ for host in lb.dus.c3voc.de lb.alb.c3voc.de; do
echo "deploying to $host"
ssh -A voc@$host 'sudo sh' << EOT
cd /srv/nginx/streaming-website
+
+echo "updating code"
git fetch origin
git reset --hard HEAD
git checkout $DEPLOY_BRANCH
git reset --hard origin/$DEPLOY_BRANCH
+
+echo "fixing permissions"
chown -R voc:staff .
chown -R downloader configs
+
+echo "re-downloading schedules"
+sudo -udownloader php index.php download
+
+echo "clearing cache"
./clear_cache
EOT
echo "deploying to $host done"