[Refactoring]

This commit is contained in:
Paul Schneider 2019-01-02 04:11:56 +00:00
commit 6f5e2aec1d
13 changed files with 0 additions and 0 deletions

18
contrib/rsync-to-prod.sh Executable file
View file

@ -0,0 +1,18 @@
#!/bin/bash
export FSPATH=/srv/www/yavsc
(
set -e
ssh root@localhost systemctl stop kestrel
ssh root@localhost rm -rf $FSPATH/approot
cd bin/output/
sleep 1
echo "Sync: > $FSPATH"
rsync -ravu wwwroot approot root@localhost:$FSPATH
sleep 1
ssh root@localhost sync
sleep 1
ssh root@localhost systemctl start kestrel
)