added build script
This commit is contained in:
14
build.sh
Executable file
14
build.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/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
|
||||
Submodule s3browser-backend updated: 8296b21883...9616450cff
Submodule s3browser-frontend updated: 61387e9fd8...f12199da65
Reference in New Issue
Block a user