source: tools/dev/push.sh @ d7de29b

cremcrem2crem3devdev2diademsdj1.6feature/breadcrumbsfeature/ts-0.5feature/ts-0.5.4feature/writecachegenericlamlam2mapsv3mergenlivemultirelease/1.4.4sabiodsearchserverstoragetelecaster
Last change on this file since d7de29b was d7de29b, checked in by yomguy <yomguy@…>, 3 years ago

fix hub

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