yavsc/contrib/rsync-to-pre.sh

23 lines
440 B
Bash
Raw Normal View History

2017-04-01 07:06:18 +02:00
#!/bin/bash
2017-06-01 22:02:35 +02:00
export FSPATH=/srv/www/yavscpre
2017-04-01 07:06:18 +02:00
2017-05-19 23:33:17 +02:00
ssh root@localhost rm -rf $FSPATH/approot
2017-04-01 07:06:18 +02:00
(
set -e
2017-06-01 22:02:35 +02:00
ssh root@localhost systemctl stop kestrel-pre
2017-04-01 07:06:18 +02:00
cd bin/output/
2017-06-01 22:02:35 +02:00
echo "sync to $FSPATH"
2017-04-01 07:06:18 +02:00
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
2017-06-01 22:02:35 +02:00
ssh root@localhost systemctl start kestrel-pre
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