Meteor Settings in a Deployed App

前端 未结 2 814
广开言路
广开言路 2020-12-17 18:08

This is probably a very basic question, but this is my first time using Meteor + Heroku and I can\'t seem to figure out how to use the settings.json file after deploying a M

相关标签:
2条回答
  • 2020-12-17 18:50

    The heroku config:add... command didn't work for me, but I was able to use heroku's dashboard to set my environment variables. You can find the dashboard tab at: https://dashboard.heroku.com/apps/yourAppName/settings, and then click on Reveal Config Vars

    0 讨论(0)
  • 2020-12-17 19:01

    Basically: heroku config:add METEOR_SETTINGS="$(cat settings.json)".

    0 讨论(0)
提交回复
热议问题