Skip to content

Commit

Permalink
feat: add database persistent connection value
Browse files Browse the repository at this point in the history
  • Loading branch information
TrayserCassa committed Jan 8, 2025
1 parent 8ca311a commit cbbca08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ lint-fix: golangci-lint ## Run golangci-lint linter and perform fixes

.PHONY: build
build: manifests generate ## Build manager binary.
go build -o bin/manager cmd/manager.go
go build -o manager cmd/manager.go

.PHONY: run
run: manifests generate zap-pretty ## Run a controller from your host.
Expand All @@ -114,7 +114,8 @@ run: manifests generate zap-pretty ## Run a controller from your host.
# (i.e. docker build --platform linux/arm64). However, you must enable docker buildKit for it.
# More info: https://docs.docker.com/develop/develop-images/build_enhancements/
.PHONY: docker-build
docker-build: ## Build docker image with the manager.
docker-build: build ## Build docker image with the manager.
cp LICENSE third-party-licenses.md
$(CONTAINER_TOOL) build . -t ${IMG} -f ./build/Dockerfile

.PHONY: docker-push
Expand Down
4 changes: 4 additions & 0 deletions api/v1/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,10 @@ func (s *Store) GetEnv() []corev1.EnvVar {
Name: "APP_URL",
Value: fmt.Sprintf("https://%s", s.Spec.Network.Host),
},
{
Name: "DATABASE_PERSISTENT_CONNECTION",
Value: "1",
},
}

c = append(c, s.getSessionCache()...)
Expand Down

0 comments on commit cbbca08

Please sign in to comment.