部署应用程序中的流星设置

部署应用程序中的流星设置

问题描述:

这可能是一个非常基本的问题,但这是我第一次使用Meteor + Heroku,在部署Meteor应用程序(目前使用heroku)后,我似乎无法弄清楚如何使用settings.json文件。

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 Meteor app (currently using heroku).

从我在网上的研究时间来看,似乎为了在已部署的应用程序中使用设置,我必须做...

From my hours of research on web, it seems that in order to use the settings in a deployed app, I have to do...

export METEOR_SETTINGS="$(cat settings.json)"

起初我以为这是为了获得一个boostrap文件...然后我意识到我错了,当我开始得到保留字错误(因为导出)

At first I thought that this is meant to go to a boostrap file... Then I realized I was wrong when I started get reserved word errors (because of "export")

那么......我在哪里以及如何使用这条线?我想用终端键入这个?如果是这样,我怎么能在Heroku中做到这一点?

So... Where and how do I use this line? Am I suppose to use terminal to type this in? If so, how can I do that in Heroku?

基本上: heroku config:add METEOR_SETTINGS = $(cat settings.json)