10 lines
247 B
Shell
Executable file
10 lines
247 B
Shell
Executable file
# 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}
|