diff --git a/.gitignore b/.gitignore index 73b9c10..9a4ef19 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ target/ dist/ +cards/ diff --git a/build b/build new file mode 100755 index 0000000..e0b6fcf --- /dev/null +++ b/build @@ -0,0 +1,13 @@ +#!/bin/sh + +# 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: