Skip to content

Commit

Permalink
feat: update webExternalURL in Makefile run command
Browse files Browse the repository at this point in the history
The URL is now set to `http://localhost:8080/api` instead of
just `/api`. This change ensures the correct base URL is used when
running the application locally.
  • Loading branch information
Ajnasz committed May 24, 2024
1 parent 6a72e80 commit 0c320d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ BUILD_ARGS=-trimpath -ldflags '-w -s'
all: clean linux

run:
@cd cmd/sekret.link && POSTGRES_URL="postgres://postgres:password@localhost:5432/sekret_link_test?sslmode=disable" go run . -webExternalURL=/api
@cd cmd/sekret.link && POSTGRES_URL="postgres://postgres:password@localhost:5432/sekret_link_test?sslmode=disable" go run . -webExternalURL=http://localhost:8080/api

.PHONY: build
build: build/${BINARY_NAME}.linux.amd64
Expand Down

0 comments on commit 0c320d3

Please sign in to comment.