sbin/sync/sync_ldt_platform
changeset 0 bdf22b140727
child 8 325b616147c4
equal deleted inserted replaced
-1:000000000000 0:bdf22b140727
       
     1 #!/usr/bin/env bash
       
     2 set -e
       
     3 if [ -d ~/tmp/platform_V$1 ]; then
       
     4     rm -fr ~/tmp/platform_V$1;
       
     5 fi
       
     6 
       
     7 hg archive -r V$1 ~/tmp/platform_V$1
       
     8 
       
     9 #text2unix ~/tmp/platform_V$1
       
    10 
       
    11 if [ -d ~/tmp/platform_V$1 ]; then
       
    12     cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/platform_V$1/web/ iri@clint.culturel.centrepompidou.lan:/iridata/www/dev/ldt/
       
    13 + core
       
    14 P .htpasswd
       
    15 P .htaccess
       
    16 P platform/.htaccess
       
    17 P platform/config.py
       
    18 P platform/modwsgi.wsgi
       
    19 P robots.txt
       
    20 P env/***
       
    21 P log/***
       
    22 P index/***
       
    23 P static/media/***
       
    24 EOT
       
    25 fi
       
    26 
       
    27 if [ -d ~/tmp/platform_V$1 ]; then
       
    28     echo "Deleting temp export"
       
    29     rm -fr ~/tmp/platform_V$1;
       
    30 fi
       
    31 
       
    32 ssh iri@web.iri.centrepompidou.fr sudo apache2ctl restart