How do i deploy a mongo blog to heroku without revealing my database URI

Does your .gitignore include your .env? That is for your local dev, and shouldn’t be part of your git anyway, right?

Found couple quick articles (on these very forums, interestingly enough) about this. First is about using .env for sensitive info (and how NOT to send it to github or heroku) and the second about setting up a mongodb for your heroku. Both seem to work hand-in-hand, I think.