[MEF]+script

This commit is contained in:
Paul Schneider 2017-04-01 07:06:18 +02:00
commit f0459e908b
17 changed files with 600 additions and 64 deletions

View file

@ -1,9 +0,0 @@
#!/bin/bash
ssh root@localhost rm -rf /srv/www/yavscpre/approot/src
(cd bin/output/
rsync -ravu --exclude=.git --chown=www-data:www-data wwwroot approot root@localhost:/srv/www/yavscpre
ssh root@localhost service kestrel restart
)

12
Yavsc/contrib/rsync-to-pre.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
FSPATH=/srv/www/yavscpre
ssh root@localhost rm -rf $FSPATH/approot/src
(
set -e
cd bin/output/
rsync -ravu wwwroot approot root@localhost:$FSPATH
ssh root@localhost service kestrel restart
)

13
Yavsc/contrib/rsync-to-prod.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
FSPATH=/srv/www/yavsc
ssh root@localhost rm -rf $FSPATH/approot/src
(
set -e
cd bin/output/
rsync -ravu wwwroot approot root@localhost:$FSPATH
ssh root@localhost service kestrel restart
)