Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
bebe785b9c |
|||
|
78307e3b1a |
3 changed files with 11 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -21,3 +21,4 @@
|
|||
# Go workspace file
|
||||
go.work
|
||||
|
||||
.env
|
||||
|
|
|
|||
10
deploy-demo.sh
Executable file
10
deploy-demo.sh
Executable file
|
|
@ -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}
|
||||
Binary file not shown.
Loading…
Reference in a new issue