Kaku/deploy-demo.sh
2026-09-11 14:39:42 +02:00

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}