Fix scripts

This commit is contained in:
cool-mist 2025-02-23 15:26:42 +05:30
parent 74a91f5a1f
commit 111a01faac
3 changed files with 15 additions and 0 deletions

1
.gitignore vendored
View File

@ -22,3 +22,4 @@ Cargo.lock
dist/ dist/
sol_chess.tar.gz sol_chess.tar.gz
local-deploy/

10
deploy-ltpd.sh Executable file
View File

@ -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"

4
run-local.sh Executable file
View File

@ -0,0 +1,4 @@
./build-web.sh && \
mkdir -p ./local-deploy && \
./deploy-ltpd.sh ./local-deploy && \
basic-http-server ./local-deploy