From 9da758cefb9d137205c91354ae6344f2e8ebd352 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20=C3=96zbek?= Date: Sat, 9 Mar 2019 16:59:12 +0300 Subject: [PATCH] Update main.go --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 2db5e94..03299b4 100644 --- a/main.go +++ b/main.go @@ -21,7 +21,9 @@ import ( func main() { port := os.Getenv("PORT") - port = "3100" + if port == "" { + port = "3100" + } router := gin.New() router.Use(gin.Logger()) router.Use(gin.Recovery())