Comments (4)
We're managing a settings which only apply to a specific setting by exporting them to the environment before starting the application. nconf consumes env()
and / or you can then access these using process.env
.
Are you looking for something above this level of detail or is there a need to composite / force rank the settings?
from kraken-js.
I was thinking more of a composite / force rank the config files.
But I think this probably falls into the "too much for Kraken" category as discussed in issue #23 .
Closing this issue.
from kraken-js.
if you look inside of kraken-js source it is already supported: https://github.com/paypal/kraken-js/blob/master/lib/util/configutil.js#L93
You can create files environment based config files:
- app-production.js
- app-staging.js
- app-test.js
- app-development.js
with NODE_ENV=test
kraken-js will load app.js
and then extend it with app-test.js
Hope this answers your question
from kraken-js.
@sjevs I am trying to do something similar and ran into an issue with needing multiple development environments. I need a local and a development one, and no matter what I set the app-local.js to it inherits production settings for file paths. Basically it is pulling from the .build directory on the front end.
from kraken-js.
Related Issues (20)
- How to access image from directory located outside the workspace? HOT 1
- Uglify-js has security issues HOT 1
- Templates in public directory? HOT 2
- remove bluebird 🔥 HOT 5
- Support Async Middleware HOT 6
- Is it alive? HOT 3
- remove domains? HOT 16
- formidable events not firing properly in kraken HOT 1
- Koa port HOT 1
- Ajax with krakenjs HOT 1
- Upload multiple images krakenjs using ajax HOT 1
- Creating New Project using yo for Ubuntu 16.04 HOT 6
- Server is starting (status 503) HOT 3
- Dead? HOT 6
- Add node 12 in travis CI
- [Devdeps][security] replace jade with pug
- Yo Kraken Error HOT 9
- Kraken.js - yo kraken Error kraken primordials is not defined HOT 3
- Name of this library HOT 1
- Feature request: ability to use `config/*.js` instead of json
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 kraken-js.