[MEF]+script
This commit is contained in:
parent
2cbf44d4a0
commit
f0459e908b
17 changed files with 600 additions and 64 deletions
|
|
@ -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
12
Yavsc/contrib/rsync-to-pre.sh
Executable 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
13
Yavsc/contrib/rsync-to-prod.sh
Executable 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
|
||||
)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue