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
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:
5
main.go
5
main.go
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user