|
|
@@ -5,7 +5,7 @@
|
|
|
//
|
|
|
// Профилирование:
|
|
|
//
|
|
|
-// go tool pprof http://localhost:8080/debug/pprof/profile?seconds=30
|
|
|
+// go tool pprof http://localhost:29080/debug/pprof/profile?seconds=30
|
|
|
package main
|
|
|
|
|
|
import (
|
|
|
@@ -19,10 +19,10 @@ import (
|
|
|
)
|
|
|
|
|
|
func profile() {
|
|
|
- port := "8081"
|
|
|
+ port := "29081"
|
|
|
stage := os.Getenv("STAGE")
|
|
|
if stage == "prod" {
|
|
|
- port = "8080"
|
|
|
+ port = "29080"
|
|
|
}
|
|
|
for {
|
|
|
err := http.ListenAndServe("0.0.0.0:"+port, nil)
|