fix: non-development builds
parent
202088446c
commit
383711e6c0
3
Makefile
3
Makefile
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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" \
|
||||
|
|
Loading…
Reference in New Issue