diff --git a/.gitignore b/.gitignore index adf8f72..d43a39d 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ # Go workspace file go.work +.env diff --git a/deploy-demo.sh b/deploy-demo.sh new file mode 100755 index 0000000..6d512ae --- /dev/null +++ b/deploy-demo.sh @@ -0,0 +1,10 @@ +# deploy-demo.sh +#!/bin/bash +set -e + +source .env + +GOOS=js GOARCH=wasm go build -o webdemo/parser.wasm ./wasm + +scp webdemo/index.html ${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH} +scp webdemo/parser.wasm ${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH} diff --git a/webdemo/parser.wasm b/webdemo/parser.wasm index 5c2f630..bc2e4fe 100755 Binary files a/webdemo/parser.wasm and b/webdemo/parser.wasm differ