| author | ymh <ymh.work@gmail.com> |
| Thu, 01 Mar 2012 13:17:55 +0100 | |
| changeset 578 | c01075236079 |
| parent 54 | e111c8a3b4ac |
| child 580 | 4e79c564166d |
| permissions | -rwxr-xr-x |
| 54 | 1 |
|
| 0 | 2 |
#!/usr/bin/env bash |
3 |
set -e |
|
4 |
if [ -d ~/tmp/platform_V$1 ]; then |
|
5 |
rm -fr ~/tmp/platform_V$1; |
|
6 |
fi |
|
7 |
||
8 |
hg archive -r V$1 ~/tmp/platform_V$1 |
|
9 |
||
10 |
#text2unix ~/tmp/platform_V$1 |
|
11 |
||
12 |
if [ -d ~/tmp/platform_V$1 ]; then |
|
|
578
c01075236079
new version and new location for the platform
ymh <ymh.work@gmail.com>
parents:
54
diff
changeset
|
13 |
cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/platform_V$1/web/ iri@web.iri.centrepompidou.fr:/iridata/www/dev/ldt/ |
| 0 | 14 |
+ core |
15 |
P .htpasswd |
|
16 |
P .htaccess |
|
| 8 | 17 |
P ldtplatform/.htaccess |
18 |
P ldtplatform/config.py |
|
19 |
P ldtplatform/modwsgi.wsgi |
|
| 0 | 20 |
P robots.txt |
21 |
P env/*** |
|
22 |
P log/*** |
|
23 |
P index/*** |
|
24 |
P static/media/*** |
|
25 |
EOT |
|
26 |
fi |
|
27 |
||
28 |
if [ -d ~/tmp/platform_V$1 ]; then |
|
29 |
echo "Deleting temp export" |
|
30 |
rm -fr ~/tmp/platform_V$1; |
|
31 |
fi |
|
32 |
||
33 |
ssh iri@web.iri.centrepompidou.fr sudo apache2ctl restart |