Skip to content

Commit

Permalink
fix: the port ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
Pradumnasaraf committed Mar 20, 2023
1 parent bd530b3 commit d831c5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MONGO_URL=mongodb://localhost:27017
MONGO_DB=netflix
MONGO_COLLECTION=watchlist
PORT=:8088
PORT=8088
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ import (

func main() {
router := router.Router()
router.Run(os.Getenv("PORT"))
router.Run("0.0.0.0:" + os.Getenv("PORT"))
}

0 comments on commit d831c5f

Please sign in to comment.