Commit c6332b15 authored by Julien Schröter's avatar Julien Schröter

Explicitly pass service address to gin router

parent 14430bf5
Pipeline #1632 passed with stages
in 14 minutes and 15 seconds
......@@ -213,6 +213,10 @@ func main() {
raven.CapturePanic(func() {
// By default it serves on :8080 unless a
// PORT environment variable was defined.
router.Run()
if port, ok := os.LookupEnv("PORT"); ok {
router.Run(":" + port)
} else {
router.Run()
}
}, nil)
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment