Comments (8)
For production meteor applications (when the NODE_ENV is set to 'production' - this is set by default on Modulus), you can use the METEOR_SETTINGS environment variable to expose these settings to the application.
If you are using Modulus, you can run $ modulus env set METEOR_SETTINGS "$(cat settings.json)"
in the Modulus CLI to set the environment variable using your existing settings.json
file (be sure to restart your application after setting the variable).
from demeteorizer.
im sure that doing something wrong. When i demeteorized i didnt have seting.json in .demeteorized
dir. SO i copied file and ran what ypu suggest. I have error :
Error: Settings are not valid JSON
at packages/meteor/server_environment.js:11
at packages/meteor.js:184:4
at packages/meteor.js:1170:3
at /mnt/data/2/programs/server/boot.js:155:10
at Array.forEach (native)
at Function..each..forEach (/mnt/data/2/node_modules/underscore/underscore.js:79:11)
at /mnt/data/2/programs/server/boot.js:82:5
[2014-01-14T15:49:11.450Z] Application CRASH detected. Exit code 8.
[2014-01-14T15:49:13.248Z] Application restarted.
any idea?
from demeteorizer.
Would you mind jumping into the #Modulus IRC channel? http://irc-5518.onmodulus.net
from demeteorizer.
Sorry about that, looks like wrapping the results of the cat
command will make this work correctly: $ modulus env set METEOR_SETTINGS "$(cat settings.json)"
.
👍
from demeteorizer.
still the same error
:(
from demeteorizer.
Your JSON appears to be incomplete - the closing braces are missing from the variable. It might be easier to just hand edit the value in the administration section of your project on the web portal.
from demeteorizer.
you have to be in the directory of the settings file when you run modulus env set METEOR_SETTINGS "$(cat settings.json)"
from demeteorizer.
I don't see demeteorizer including the settings.json (it is valid json) file into the root folder of the app, can you guys include that?
from demeteorizer.
Related Issues (20)
- Is this necessary with Meteor 1.4 anymore? HOT 4
- [request] Change the way Modulus deploys a Meteor App HOT 1
- error with NPM start HOT 2
- SSL on demeteorized application HOT 2
- Replace server/npm/node_modules folder with package.json HOT 1
- Modulus still uses nodejs 0.10.x to deploy an app HOT 16
- Removing process.chdir HOT 1
- License needs an update.
- meteor with dummy mongo URL doesn't work HOT 2
- settings.json undefined HOT 3
- trying to pass env variables to deployed app HOT 7
- Meteor app deployed on azure, throw an error and doesn't show up HOT 3
- Error: key emails.address must not contain '.' HOT 16
- Deployment to Azure fails "Changes commited to remote repo but deployment to website failed" HOT 5
- Missing modules when deploying to google app engine
- Error: spawn ENOMEM
- Serving images out of /public directory
- multi threaded ?
- "npm start" error on Linux HOT 2
- Error occurred, type: error, text: Invalid path for filesystem HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from demeteorizer.