diff --git a/build b/build index e0b6fcf..3859213 100755 --- a/build +++ b/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