[Refactoring]
This commit is contained in:
parent
4c22291ed9
commit
6f5e2aec1d
13 changed files with 0 additions and 0 deletions
23
contrib/rsync-to-pre.sh
Executable file
23
contrib/rsync-to-pre.sh
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
|
||||
export FSPATH=/srv/www/yavscpre
|
||||
|
||||
ssh root@localhost rm -rf $FSPATH/approot
|
||||
|
||||
(
|
||||
set -e
|
||||
ssh root@localhost systemctl stop kestrel-pre
|
||||
cd bin/output/
|
||||
echo "sync to $FSPATH"
|
||||
rsync -ravu wwwroot approot root@localhost:$FSPATH
|
||||
sleep 1
|
||||
ssh root@localhost sync
|
||||
sleep 1
|
||||
ssh root@localhost systemctl start kestrel-pre
|
||||
)
|
||||
|
||||
echo "Now, go and try <https://yavscpre.pschneider.fr>"
|
||||
echo "Then, feel free to launch contrib/rsync-to-prod.sh"
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue