s3browser/build.sh

15 lines
287 B
Bash
Raw Normal View History

2021-09-03 21:24:24 +00:00
#!/usr/bin/env sh
set -e
# Build frontend
yarn --cwd s3browser-frontend run build
# copy fontend build to backend for embeding
cp -r s3browser-frontend/build s3browser-backend/internal/static
# Build backend
cd s3browser-backend
go build -o s3browser -tags prod ./cmd/s3Browser.go