automate deployment
This commit is contained in:
parent
6fec952ab1
commit
d490086793
1 changed files with 10 additions and 3 deletions
13
build
13
build
|
@ -2,12 +2,19 @@
|
||||||
|
|
||||||
# build
|
# build
|
||||||
cargo build --release
|
cargo build --release
|
||||||
rm -rf ./cards
|
|
||||||
mkdir cards
|
mkdir cards
|
||||||
cp ./target/release/server ./cards/
|
cp ./target/release/server ./cards/
|
||||||
rm -rf ./dist
|
rm -rf ./dist
|
||||||
trunk build --release
|
trunk build --release
|
||||||
cp -r ./dist ./cards/
|
cp -r ./dist ./cards/
|
||||||
|
|
||||||
# deploy - note deez is the hostname of my server
|
# deploy
|
||||||
rsync -avzp cards deez:
|
rsync -avzp cards deez:cards/
|
||||||
|
ssh -l "$USER" deez -t "cd cards
|
||||||
|
rm server
|
||||||
|
rm -rf dist
|
||||||
|
mv cards/* .
|
||||||
|
rmdir cards
|
||||||
|
sudo -S systemctl restart cards"
|
||||||
|
|
||||||
|
rm -rf cards
|
||||||
|
|
Loading…
Add table
Reference in a new issue