before macaron

This commit is contained in:
Torkel Ödegaard
2014-10-05 15:34:24 +02:00
parent a4204880e8
commit 2c72831be1
4 changed files with 10 additions and 11 deletions

View File

@@ -122,4 +122,9 @@ func NewConfigContext() {
Domain = Cfg.MustValue("server", "domain", "localhost")
HttpAddr = Cfg.MustValue("server", "http_addr", "0.0.0.0")
HttpPort = Cfg.MustValue("server", "http_port", "3000")
port := os.Getenv("PORT")
if port != "" {
HttpPort = port
}
}