Is it possible to specify a settings file running a remote deploy of a meteor app on their free service?
in other words how can I issue the remote equivalent of "meteor run --settings settings.json" ?
thanks
Try deploying using:
meteor deploy XXX.meteor.com --settings settings.json
...instead of simply meteor deploy XXX.meteor.com
You can initialize settings by passing the --settings option [...] to
meteor run
ormeteor deploy
cf Meteor documentation
If you are trying to deploy from the remote server where settings.json is not available then convert your JSON to the inline equivalent and export it to METEOR_SETTINGS environment variable.
For example running from the server:
export METEOR_SETTINGS='{your json}'
meteor deploy XXX.meteor.com
This way you can make use of CI services like Travis where you can set METEOR_SETTINGS as secret variable and run deployment script.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With