https://github.com/yinrong/menv
Multiple Environment Configuration for Any Language
https://github.com/yinrong/menv
config-management multi-environment production-enviroment
Last synced: 4 months ago
JSON representation
Multiple Environment Configuration for Any Language
- Host: GitHub
- URL: https://github.com/yinrong/menv
- Owner: yinrong
- Created: 2019-03-21T08:13:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-24T06:50:56.000Z (about 7 years ago)
- Last Synced: 2025-10-27T08:20:30.801Z (8 months ago)
- Topics: config-management, multi-environment, production-enviroment
- Language: JavaScript
- Size: 231 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# menv
Inheritable Multiple Environment Configuration for Any Language

# Usage
## 1. Without NodeJS Runtime
### 1.1. Install / Upgrade
```bash
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/".
```bash
./menv build
```
### 1.4. Echo Config
```bash
./menv echo
```
## 2. With NodeJS Runtime
### 2.1. Install / Upgrade
```bash
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/".
```bash
menv build
```
### 2.4. Echo Config
```bash
menv echo
```