Allow enabling sessions via SESSIONS env var

This commit is contained in:
Dan Sosedoff 2016-01-10 15:22:30 -06:00
parent f3920afe8c
commit 73185940b6

View File

@ -36,5 +36,9 @@ func ParseOptions() error {
Opts.Url = os.Getenv("DATABASE_URL") Opts.Url = os.Getenv("DATABASE_URL")
} }
if os.Getenv("SESSIONS") != "" {
Opts.Sessions = true
}
return nil return nil
} }