Use env variables to configure
This commit is contained in:
parent
e7a73e0859
commit
d48fffff6c
3 changed files with 8 additions and 0 deletions
2
main.go
2
main.go
|
@ -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()
|
||||
|
|
Reference in a new issue