Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我目前正在做一个需要数据库的副项目。我选择选择 MongoDB。我安装了 dotenv 包,所以我可以使用它来保存我的秘密 mongoDB 连接字符串。
我想将我的应用程序部署到 Heroku,但我当然不想为此将我的 .env 推送到 github 存储库。有没有办法解决?这是一个heroku-git repo,但我不知道这会有多安全。关于如何保持连接字符串保密并将应用程序推送到像 Heroku 这样的平台的任何其他想法?
在应用程序的“设置”选项卡中,存在该选项