Fix scripts
This commit is contained in:
parent
74a91f5a1f
commit
111a01faac
1
.gitignore
vendored
1
.gitignore
vendored
@ -22,3 +22,4 @@ Cargo.lock
|
||||
|
||||
dist/
|
||||
sol_chess.tar.gz
|
||||
local-deploy/
|
||||
|
10
deploy-ltpd.sh
Executable file
10
deploy-ltpd.sh
Executable 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
4
run-local.sh
Executable file
@ -0,0 +1,4 @@
|
||||
./build-web.sh && \
|
||||
mkdir -p ./local-deploy && \
|
||||
./deploy-ltpd.sh ./local-deploy && \
|
||||
basic-http-server ./local-deploy
|
Loading…
x
Reference in New Issue
Block a user