Commit b93d3870 authored by Max Richter's avatar Max Richter
Browse files

fix(): get port from env

parent c9c5b719
Pipeline #1863 passed with stages
in 2 minutes and 42 seconds
......@@ -37,7 +37,7 @@ func Init() {
// Create a new server
srv := &http.Server{
Handler: r,
Addr: "0.0.0.0:8080",
Addr: "0.0.0.0" + getPort(),
// Good practice: enforce timeouts for servers you create!
WriteTimeout: 5 * time.Second,
ReadTimeout: 5 * time.Second,
......
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