Skip to content

Commit

Permalink
fixed env format
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammad.mamun committed Oct 26, 2023
1 parent 41fd6bd commit 6719880
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
DATABASE_NAME=DATABASE_NAME
MONGO_URL=mongodb://localhost:27017/
DATABASE_NAME=your_database_name
USERNAME_NAME=
PASSWORD=
2 changes: 1 addition & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@


if __name__ == "main":
app.run()
app.run(host="0.0.0.0",port=9000)
2 changes: 1 addition & 1 deletion src/config/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def db() -> dict:
"db": {
"url": env("MONGO_URL", "mongodb://localhost:27017/"),
"name": env("DATABASE_NAME", "database_name"),
"user": env("USERNAME_NAME", ""),
"user": env("USERNAME", ""),
"password": env("PASSWORD", "")
}
}

0 comments on commit 6719880

Please sign in to comment.