#!/bin/sh # build cargo build --release mkdir cards cp ./target/release/server ./cards/ rm -rf ./dist trunk build --release cp -r ./dist ./cards/ # 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