From 53221e567a454be26d06de508529f6481145aaa0 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Fri, 3 Sep 2021 23:24:24 +0200 Subject: [PATCH] added build script --- build.sh | 14 ++++++++++++++ s3browser-backend | 2 +- s3browser-frontend | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100755 build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..45c0778 --- /dev/null +++ b/build.sh @@ -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 diff --git a/s3browser-backend b/s3browser-backend index 8296b21..9616450 160000 --- a/s3browser-backend +++ b/s3browser-backend @@ -1 +1 @@ -Subproject commit 8296b21883279301f1144d10847c93e6d04cc083 +Subproject commit 9616450cffd5cd1fec540259b543938a643fa6fa diff --git a/s3browser-frontend b/s3browser-frontend index 61387e9..f12199d 160000 --- a/s3browser-frontend +++ b/s3browser-frontend @@ -1 +1 @@ -Subproject commit 61387e9fd856c72cd9d13757f5fb4a93dbb775e8 +Subproject commit f12199da652b644ef8345167d3c54bbbc804ef35