Added host address to .env

This commit is contained in:
Florian Sylvain
2022-12-22 02:52:50 +01:00
parent 659554c2a9
commit d3c68d6c89
7 changed files with 24 additions and 26 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ import (
"github.com/joho/godotenv"
)
var ginMode = os.Getenv("GIN_MODE")
var ginMode = os.Getenv("APP_GIN_MODE")
func initEnvVariables() {
if godotenv.Load() != nil {
@@ -67,7 +67,7 @@ func initGin() {
initBasicRoutes(r)
initArticlesRoutes(r)
r.Run(":" + os.Getenv("API_PORT"))
r.Run(":" + os.Getenv("APP_API_PORT"))
}
func main() {