Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specify settings.json file deploying on remote meteor free service

Tags:

meteor

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

like image 418
user70760 Avatar asked Mar 27 '15 12:03

user70760


Video Answer


2 Answers

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 or meteor deploy

cf Meteor documentation

like image 140
Adrien Joly Avatar answered Jun 15 '23 08:06

Adrien Joly


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.

like image 42
mordka Avatar answered Jun 15 '23 07:06

mordka