Skip to content
/ menv Public

Multiple Environment Configuration for Any Language

Notifications You must be signed in to change notification settings

yinrong/menv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

menv

Inheritable Multiple Environment Configuration for Any Language

Demo: menv build

Usage

1. Without NodeJS Runtime

1.1. Install / Upgrade

curl -s https://registry.npmjs.org/menv-wrapper/-/menv-wrapper-1.3.0.tgz |tar zx package/menv --strip-components=1
./menv
git add -f menv .gitignore
git commit -m 'add menv'
git push

1.2. Prepare Config

example: https://github.com/yinrong/menv/tree/master/test/conf

1.3. Build Config

  • Source config files must be located at "./conf/".
  • Output config files are located at "./build/conf/".
./menv build

1.4. Echo Config

./menv echo <env> <path>

2. With NodeJS Runtime

2.1. Install / Upgrade

npm i -g menv

2.2. Prepare Config

example: https://github.com/yinrong/menv/tree/master/test/conf

2.3. Build Config

  • Source config files must be located at "./conf/".
  • Output config files are located at "./build/conf/".
menv build

2.4. Echo Config

menv echo <env> <path>

About

Multiple Environment Configuration for Any Language

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published