feat: updated docs to include filestruct
Some checks failed
Tests / Run Go Tests (push) Failing after 2m53s
Arbeitszeitmessung Deploy / Build Webserver (push) Successful in 3m4s

This commit is contained in:
2026-01-26 21:46:51 +01:00
parent 6998d07c6b
commit 41c34c42cf
3 changed files with 88 additions and 4 deletions

View File

@@ -50,10 +50,12 @@ func main() {
defer models.DB.(*sql.DB).Close()
err = Migrate()
if err != nil {
slog.Error("Failed to migrate the database to newest version", "Error", err)
return
if helper.GetEnv("GO_ENV", "production") != "debug" {
err = Migrate()
if err != nil {
slog.Error("Failed to migrate the database to newest version", "Error", err)
return
}
}
fs := http.FileServer(http.Dir("./static"))