diff options
author | Alan Pearce | 2024-06-25 20:11:20 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-25 20:11:20 +0200 |
commit | 2fcf88ac2e088cdb7692ccfd7fccce01dd0cd523 (patch) | |
tree | 1a10913622f35818cade49d1856f0d999ff65fbd /cmd | |
parent | 1b734d8731f4d5ada6ca0da07e2bcf59e00f209d (diff) | |
download | website-2fcf88ac2e088cdb7692ccfd7fccce01dd0cd523.tar.lz website-2fcf88ac2e088cdb7692ccfd7fccce01dd0cd523.tar.zst website-2fcf88ac2e088cdb7692ccfd7fccce01dd0cd523.zip |
refactor server startup
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/server/main.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/cmd/server/main.go b/cmd/server/main.go index 26dbe32..1388463 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -25,15 +25,6 @@ func main() { } log.Configure(!runtimeConfig.Development) - if runtimeConfig.Development { - tmpdir, err := os.MkdirTemp("", "website") - if err != nil { - log.Fatal("could not create temporary directory to build website: %v", err) - } - runtimeConfig.Root = tmpdir - defer os.RemoveAll(tmpdir) - } - sv, err := server.New(&runtimeConfig) if err != nil { log.Error("could not create server", "error", err) |