fix: non-development builds

pull/11542/head
Sebastian-Webster 2024-04-11 12:02:12 +12:00
parent 202088446c
commit 383711e6c0
2 changed files with 3 additions and 2 deletions

View File

@ -79,7 +79,8 @@ dev: ## Run both the client and server in development mode
dev-client: ## Run the client in development mode
yarn dev
dev-server: build-server ## Run the server in development mode
dev-server: ## Run the server in development mode
make PLATFORM=linux build-server
@./dev/run_container.sh

View File

@ -36,7 +36,7 @@ BINARY_VERSION_FILE="../binary-version.json"
echo "$ldflags"
# the build takes 2 seconds
GOOS=linux GOARCH=${2:-$(go env GOARCH)} CGO_ENABLED=0 go build \
GOOS=${1:-$(go env GOOS)} GOARCH=${2:-$(go env GOARCH)} CGO_ENABLED=0 go build \
-trimpath \
--installsuffix cgo \
--ldflags "$ldflags" \