diff --git a/CHANGELOG b/CHANGELOG index d30620a..64ca7ce 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/README.org b/README.org index d24cc48..a642932 100644 --- a/README.org +++ b/README.org @@ -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. diff --git a/VERSION b/VERSION index 26aaba0..f0bb29e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.0 +1.3.0 diff --git a/pkg/env/env.go b/pkg/env/env.go index 6131b85..2c8fec6 100644 --- a/pkg/env/env.go +++ b/pkg/env/env.go @@ -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 -}