yavsc/Yavsc/contrib/rsync-to-pre.sh

22 lines
402 B
Bash
Raw Normal View History

2017-04-01 07:06:18 +02:00
#!/bin/bash
FSPATH=/srv/www/yavscpre
ssh root@localhost rm -rf $FSPATH/approot/src
(
set -e
2017-05-16 02:14:02 +02:00
ssh root@localhost service kestrel stop
2017-04-01 07:06:18 +02:00
cd bin/output/
rsync -ravu wwwroot approot root@localhost:$FSPATH
2017-05-16 02:14:02 +02:00
sleep 1
2017-05-12 12:15:57 +02:00
ssh root@localhost sync
2017-05-16 02:14:02 +02:00
sleep 1
ssh root@localhost service kestrel start
2017-04-01 07:06:18 +02:00
)
2017-04-08 01:01:01 +02:00
echo "Now, go and try <https://yavscpre.pschneider.fr>"
echo "Then, feel free to launch contrib/rsync-to-prod.sh"
2017-04-09 02:47:52 +02:00
2017-04-08 09:17:15 +02:00
2017-04-08 01:01:01 +02:00