Skip to content

Commit

Permalink
Automated commit by Forgejo CI/CD - Personal Bot
Browse files Browse the repository at this point in the history
  • Loading branch information
poniatowski-bot committed Dec 20, 2023
1 parent 8159140 commit 5355423
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## [1.2.0] - 13-11-2023
### Added
- Created a distributor, for distributing to "bodyless" data. In other words, it will distribute the cached webpages to other frontends, where the other frontend will only have it in memory, but not written to disk.
- Also did some cleanup/refactoring and moved types to their own go file
- I shelved the replicator for now, and decided to implement functions to template building, aptly named: func my template
- for now its an empty funcmap, until I have a test function in my other repo, which will be open to additions
5 changes: 5 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ Adjust your frontend setup with environment variables (`PORT`,`TEMPLATEDIRECTORY
- `REFRESHCACHE` : Specify a different refresh cycle (default is 60 seconds)
- `PROFILER` : Specify `True` to enable the profiler to print the time it took to run a function. I will add additional funtionality to this,to be able to use it in templates

** To try or run it on docker:
#+NAME: docker
#+BEGIN_SRC bash
docker pull zehd/zehd:latest
#+END_SRC

Here is the [[https://github.com/APoniatowski/zehd-backend][backend service]], if you plan on collecting data on people visiting your site.

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.0
1.3.0
9 changes: 0 additions & 9 deletions pkg/env/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,3 @@ func EnvCacheRefresh() string {
}
return timer
}

// EnvProfiler get the profiler switch from environment variables or return the default (false)
func EnvProfiler() string {
profiler := os.Getenv("PROFILER")
if len(profiler) == 0 {
profiler = "false"
}
return profiler
}

0 comments on commit 5355423

Please sign in to comment.