Skip to content
Snippets Groups Projects
Commit f35aa8fe authored by Aksel Baardsen's avatar Aksel Baardsen
Browse files

improved port-thing

parent 05d0bc8d
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,10 @@ import ( ...@@ -10,7 +10,10 @@ import (
func main() { func main() {
r := mux.NewRouter() r := mux.NewRouter()
port := os.Getenv("PORT")
// sets port
port := ""
port = os.Getenv("PORT")
if port == "" { if port == "" {
port = "5000" port = "5000"
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment