forked from templates/template-go-backend
new proxy
This commit is contained in:
9
Makefile
9
Makefile
@@ -1,5 +1,5 @@
|
||||
NAMESPACE ?= <PROJECT_CHANGE_ME>
|
||||
PACKAGE := backend
|
||||
NAMESPACE ?= proxy
|
||||
PACKAGE := ollama-proxy
|
||||
SHELL := /bin/bash
|
||||
REGISTRY := registry.halfakop.ru
|
||||
REPOSITORY := $(NAMESPACE)/$(PACKAGE)
|
||||
@@ -21,6 +21,7 @@ help:
|
||||
@printf " make test - Run unit tests\n"
|
||||
@printf " make test-integration - Run tests with integration tag\n"
|
||||
@printf " make run - Build then run locally\n"
|
||||
@printf " make dev - Run without building (go run, with env vars)\n"
|
||||
@printf " make clean - Clean build artifacts\n"
|
||||
@printf " make release - Clean, build image, login, push\n"
|
||||
@printf "\nVariables:\n"
|
||||
@@ -53,6 +54,10 @@ run: app
|
||||
@echo "Run application"
|
||||
@./${EXEC}
|
||||
|
||||
dev:
|
||||
@echo "Run in development mode"
|
||||
@OLLAMA_BACKEND=http://localhost:11434 LISTEN_ADDR=:8080 go run ./src
|
||||
|
||||
clean:
|
||||
@echo "Clean build environment"
|
||||
@rm -rf ./${EXEC}
|
||||
|
||||
Reference in New Issue
Block a user