mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 06:34:17 +00:00
re-download schedule after deploy
This commit is contained in:
parent
40bff62daf
commit
0fec82ef10
1 changed files with 9 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue