@@ -18,8 +18,13 @@ import (
)
func profile() {
+ port := "8080"
+ stage := os.Getenv("STAGE")
+ if stage == "local" {
+ port = "8081"
+ }
for {
- http.ListenAndServe("0.0.0.0:8080", nil)
+ http.ListenAndServe("0.0.0.0:"+port, nil)
}