sbin/sync/sync_hdalab
changeset 350 4f2fe8731353
parent 145 5e79ea1eccb3
equal deleted inserted replaced
349:2f67b4f20f07 350:4f2fe8731353
     7 hg archive -r V$1 ~/tmp/hdalab_V$1
     7 hg archive -r V$1 ~/tmp/hdalab_V$1
     8 
     8 
     9 #text2unix ~/tmp/hdalab_V$1
     9 #text2unix ~/tmp/hdalab_V$1
    10 
    10 
    11 if [ -d ~/tmp/hdalab_V$1 ]; then
    11 if [ -d ~/tmp/hdalab_V$1 ]; then
    12     cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/hdalab_V$1/web/ iri@web.iri.centrepompidou.fr:/iridata/www/iri-research/hdalab/
    12     cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/hdalab_V$1/web/ iri@web.iri.centrepompidou.fr:/iridata/www/iri-research/labs/hdalab/
    13 + core
    13 + core
    14 P .htpasswd
    14 P .htpasswd
    15 P hdalab/config.py
    15 P hdalab/config.py
    16 P robots.txt
    16 P robots.txt
    17 P env/***
    17 P env/***
    24 if [ -d ~/tmp/hdalab_V$1 ]; then
    24 if [ -d ~/tmp/hdalab_V$1 ]; then
    25     echo "Deleting temp export"
    25     echo "Deleting temp export"
    26     rm -fr ~/tmp/hdalab_V$1;
    26     rm -fr ~/tmp/hdalab_V$1;
    27 fi
    27 fi
    28 
    28 
    29 ssh iri@web.iri.centrepompidou.fr "export PYTHONPATH=/iridata/www/iri-research/hdalab && source /iridata/virtualenv/hdalab/bin/activate && cd /iridata/www/iri-research/hdalab/hdalab && django-admin.py collectstatic --noinput"
    29 ssh iri@web.iri.centrepompidou.fr "export PYTHONPATH=/iridata/www/iri-research/labs/hdalab && source /iridata/virtualenv/hdalab2/bin/activate && cd /iridata/www/iri-research/labs/hdalab/hdalab && django-admin.py collectstatic --noinput"
    30 ssh iri@web.iri.centrepompidou.fr sudo apache2ctl restart
    30 ssh iri@web.iri.centrepompidou.fr sudo apache2ctl restart