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
|
||||
cargo build --release
|
||||
rm -rf ./cards
|
||||
mkdir cards
|
||||
cp ./target/release/server ./cards/
|
||||
rm -rf ./dist
|
||||
trunk build --release
|
||||
cp -r ./dist ./cards/
|
||||
|
||||
# deploy - note deez is the hostname of my server
|
||||
rsync -avzp cards deez:
|
||||
# deploy
|
||||
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