sbin/sync/sync_live
changeset 693 2ef837069108
parent 425 b346fd32fc34
child 904 94c8f063f0ea
equal deleted inserted replaced
692:51072e5e6ea9 693:2ef837069108
     7 hg archive -r V$1 ~/tmp/tweet_live_V$1
     7 hg archive -r V$1 ~/tmp/tweet_live_V$1
     8 
     8 
     9 #text2unix ~/tmp/tweet_live_V$1
     9 #text2unix ~/tmp/tweet_live_V$1
    10 
    10 
    11 if [ -d ~/tmp/tweet_live_V$1 ]; then
    11 if [ -d ~/tmp/tweet_live_V$1 ]; then
    12     cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/tweet_live_V$1/web/ iri@www.iri.centrepompidou.fr:/home/polemictweet/
    12 #    cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/tweet_live_V$1/web/ iri@www.iri.centrepompidou.fr:/home/polemictweet/
       
    13     cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/tweet_live_V$1/web/ iri@ftv.iri-research.org:/srv/www/pt/
    13 + core
    14 + core
    14 P config.php
    15 P config.php
    15 P .htaccess
    16 P .htaccess
    16 P limesurvey/***
    17 P limesurvey/***
    17 P demo/***
    18 P demo/***
    21 if [ -d ~/tmp/tweet_live_V$1 ]; then
    22 if [ -d ~/tmp/tweet_live_V$1 ]; then
    22     echo "Deleting temp export"
    23     echo "Deleting temp export"
    23     rm -fr ~/tmp/tweet_live_V$1;
    24     rm -fr ~/tmp/tweet_live_V$1;
    24 fi
    25 fi
    25 
    26 
    26 ssh iri@www.iri.centrepompidou.fr sudo apache2ctl restart
    27 #ssh iri@www.iri.centrepompidou.fr sudo apache2ctl restart