cremcrem2devdev2diademsformagenericinstru_searchlamnlivemultiproductionrelease/1.4.4securitysocialstoragetest
| Line | |
|---|
| 1 | #!/bin/bash |
|---|
| 2 | |
|---|
| 3 | git branch | tr -d \* | while read line |
|---|
| 4 | do |
|---|
| 5 | branch=${line/#\ } |
|---|
| 6 | |
|---|
| 7 | echo "Push $branch to origin:" |
|---|
| 8 | git push origin $branch |
|---|
| 9 | |
|---|
| 10 | echo "Push $branch to web:" |
|---|
| 11 | git push web $branch |
|---|
| 12 | |
|---|
| 13 | if [[ $branch == *master* ]]; then |
|---|
| 14 | echo "Push $branch to github:" |
|---|
| 15 | git push github $branch |
|---|
| 16 | fi |
|---|
| 17 | |
|---|
| 18 | done |
|---|
| 19 | |
|---|
| 20 | git push --tags |
|---|
| 21 | git push --tags web |
|---|
| 22 | git push --tags github |
|---|
| 23 | |
|---|
| 24 | ssh vcs.parisson.com "cd /var/git/telemeta.git; git update-server-info" |
|---|
| 25 | ssh vcs.parisson.org "cd /var/git/telemeta.git; git update-server-info" |
|---|
| 26 | |
|---|
| 27 | #echo "Update jimi.parisson.com:" |
|---|
| 28 | #ssh jimi.parisson.com "cd /home/telemeta/telemeta; git pull origin production" |
|---|
| 29 | echo "Update angus.parisson.com:" |
|---|
| 30 | ssh angus.parisson.com "cd /home/telemeta/telemeta-prod; git pull origin production; \ |
|---|
| 31 | cd /home/telemeta/telemeta; git pull origin master; \ |
|---|
| 32 | cd /home/telemeta/demo/; ./manage.py migrate telemeta --delete-ghost-migrations; |
|---|
| 33 | cd /home/telemeta/sandbox/; ./manage.py migrate telemeta --delete-ghost-migrations; " |
|---|
| 34 | |
|---|
| 35 | echo "Done !" |
|---|
Note: See
TracBrowser
for help on using the repository browser.