diff --git a/.gitignore b/.gitignore index b19ecf3..857e768 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ Cargo.lock dist/ sol_chess.tar.gz +local-deploy/ diff --git a/deploy-ltpd.sh b/deploy-ltpd.sh new file mode 100755 index 0000000..db5d18e --- /dev/null +++ b/deploy-ltpd.sh @@ -0,0 +1,10 @@ +./build-web.sh + +serve_root=$1 + +mv ./sol_chess.tar.gz $serve_root/sol_chess.tar.gz && \ +tar -xzvf $serve_root/sol_chess.tar.gz -C $serve_root && \ +rm $serve_root/sol_chess.tar.gz + +echo "Deployment complete" + diff --git a/run-local.sh b/run-local.sh new file mode 100755 index 0000000..5d856de --- /dev/null +++ b/run-local.sh @@ -0,0 +1,4 @@ +./build-web.sh && \ +mkdir -p ./local-deploy && \ +./deploy-ltpd.sh ./local-deploy && \ +basic-http-server ./local-deploy