-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdeploy.sh
22 lines (19 loc) · 844 Bytes
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
cd ~/apps/cinema
git fetch --tags --progress [email protected]:aelian-repo/cinema.git +refs/heads/*:refs/remotes/origin/*
git checkout tags/$1
rsync -ravzup ~/apps/cinema/webroot/* ~/public_html/cinema/
cd ~/apps/cinema/Plugin/Pdf
git fetch --tags --progress [email protected]:aelian-repo/Pdf.git +refs/heads/*:refs/remotes/origin/*
git pull origin master
cd ~/apps/cinema/Plugin/Pdf/Vendor/make-pdf
git fetch --tags --progress [email protected]:aelian-repo/make-pdf.git +refs/heads/*:refs/remotes/origin/*
git pull origin master
rm -rf ~/apps/cinema/tmp/cache/models/*
rm -rf ~/apps/cinema/tmp/cache/persistent/*
rm -rf ~/apps/cinema/tmp/cache/views/*
rm -rf ~/apps/cinema/tmp/sessions/*
rm -rf ~/apps/cinema/tmp/tests/*
mv ~/apps/cinema/tmp/logs/* ~/suporte/cinema/
cd ~/apps/cinema
git describe --tags > ~/apps/cinema/tmp/version.txt