Use env variables to configure

This commit is contained in:
Las Zenow 2021-02-09 18:38:15 +00:00
parent e7a73e0859
commit d48fffff6c
3 changed files with 8 additions and 0 deletions

View file

@ -7,6 +7,7 @@ import (
"net/http"
"os"
"github.com/jamiealquiza/envy"
trantor "gitlab.com/trantor/trantor/lib"
"gitlab.com/trantor/trantor/lib/database"
"gitlab.com/trantor/trantor/lib/storage"
@ -27,6 +28,7 @@ func main() {
ro = flag.Bool("ro", false, "read only mode")
dev = flag.Bool("dev", false, "development mode (reload templates on each page view)")
)
envy.Parse("TRANTOR")
flag.Parse()
defer log.Flush()