mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 19:53:21 +02:00
Added host address to .env
This commit is contained in:
+2
-2
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user