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.
我正在使用 Dokku 部署到 DigitalOcean,但由于某种原因,我对 Meteor.settings 的所有引用都返回了 undefined
知道为什么会这样吗?
部署应用程序后,要获取设置,您需要使用 JSON 设置 METEOR_SETTINGS 环境变量以进行设置。
METEOR_SETTINGS=`cat settings.json` ROOT_URL=... MONGO_URL=... node main.js