files tree made better.
This commit is contained in:
parent
ffbf032480
commit
ccc91bbf19
1630 changed files with 18209 additions and 41860 deletions
18
src/Yavsc/contrib/rsync-to-prod.sh
Executable file
18
src/Yavsc/contrib/rsync-to-prod.sh
Executable 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
|
||||
)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue