Skip to content

Commit

Permalink
Define release mode, remove header printing debug
Browse files Browse the repository at this point in the history
  • Loading branch information
spacez320 committed Jul 7, 2024
1 parent a4d02f1 commit b1bed89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ spec:
spec:
containers:
- name: blog
env:
- name: GIN_MODE
value: release
image: spacez320/eudaimonia:latest
ports:
- containerPort: 8080
Expand Down
4 changes: 0 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ func getIndex(context *gin.Context) {
posts := listPosts()
log.Println(posts)

for k, v := range context.Request.Header {
log.Printf("%s: %s\n", k, v)
}

context.HTML(http.StatusOK, "index.tmpl.html", gin.H{"posts": posts})
}

Expand Down

0 comments on commit b1bed89

Please sign in to comment.