Skip to content
This repository has been archived by the owner on Sep 11, 2018. It is now read-only.

feat(core) add support for specifying environment context from command line #1022

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

m4recek
Copy link

@m4recek m4recek commented Sep 26, 2016

We are running our app in multiple environments (qa, sandbox...) and we were looking for a scalable way to provide different configuration to them. So this PR introduces env_context command line argument for picking up additional config override and global __CONTEXT__ variable to switch logic within application.

config\environments.js and package.json are included only as an example

@codecov-io
Copy link

Current coverage is 72.58% (diff: 100%)

Merging #1022 into master will not change coverage

@@             master      #1022   diff @@
==========================================
  Files            12         12          
  Lines            62         62          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits             45         45          
  Misses           17         17          
  Partials          0          0          

Powered by Codecov. Last update 87a1988...57eee8a

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants