fix wrong log file name in linux, comments of enviroment vars
All checks were successful
Build Slideshow App / build (amd64, .exe, windows) (push) Successful in 2m7s
Build Slideshow App / build (amd64, , linux) (push) Successful in 2m18s
Build Slideshow App / build (arm, 7, , linux) (push) Successful in 2m3s
Build Slideshow App / build (arm64, , linux) (push) Successful in 2m4s

This commit is contained in:
Adrian Zürcher
2026-01-18 21:46:17 +01:00
parent 3241429e98
commit d82f213ca7
5 changed files with 11 additions and 9 deletions

6
.env
View File

@@ -1,6 +1,8 @@
ENV= #empty|development|debug
#empty|development|debug
ENV=
PHOTO_DIR=images
HOST=0.0.0.0
PORT=8080
INTERVAL_DEFAULT=10
LOG_PATH= #path for logger files default .
#path for logger files default {executable name}.log
LOG_PATH=

3
.gitignore vendored
View File

@@ -1,3 +1,4 @@
images/
slideshowApp
schedule.json
schedule.json
*.log

2
go.mod
View File

@@ -3,7 +3,7 @@ module slideshowApp
go 1.25.4
require (
gitea.tecamino.com/paadi/tecamino-logger v1.0.0
gitea.tecamino.com/paadi/tecamino-logger v1.0.1
github.com/gorilla/mux v1.8.1
github.com/gorilla/websocket v1.5.3
github.com/joho/godotenv v1.5.1

4
go.sum
View File

@@ -1,5 +1,5 @@
gitea.tecamino.com/paadi/tecamino-logger v1.0.0 h1:Quk0UJerOCy7xbHWYOuBXk0FQIgx4arjVDMt2ahvaO0=
gitea.tecamino.com/paadi/tecamino-logger v1.0.0/go.mod h1:FkzRTldUBBOd/iy2upycArDftSZ5trbsX5Ira5OzJgM=
gitea.tecamino.com/paadi/tecamino-logger v1.0.1 h1:NCF/foyuf0wVKLkyy2y1FYvHo9pVaUuHc1GSU5bNVbc=
gitea.tecamino.com/paadi/tecamino-logger v1.0.1/go.mod h1:FkzRTldUBBOd/iy2upycArDftSZ5trbsX5Ira5OzJgM=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY=

View File

@@ -18,6 +18,8 @@ var staticFolder = "./web/static/"
func main() {
env.Load(".env")
logConfig := logging.DefaultConfig()
logConfig.Debug = env.Env.GetValue() == "debug"
@@ -26,9 +28,6 @@ func main() {
log.Fatal(err)
}
logger.Debug("main", "load enviroment variable")
env.Load(".env")
r := mux.NewRouter()
uploadFolder := env.PhotoDir.GetValue()