before macaron

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

No files matched your search

+5
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
}
}