Allow settings url prefix with URL_PREFIX env var

This commit is contained in:
Dan Sosedoff 2018-11-27 14:58:50 -06:00
parent 3850eedf07
commit 965cf754cf

View File

@ -54,6 +54,10 @@ func ParseOptions(args []string) (Options, error) {
opts.Url = os.Getenv("DATABASE_URL")
}
if opts.Prefix == "" {
opts.Prefix = os.Getenv("URL_PREFIX")
}
if os.Getenv("SESSIONS") != "" {
opts.Sessions = true
}