An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# menv
Inheritable Multiple Environment Configuration for Any Language

![Demo: menv build](https://github.com/yinrong/menv/raw/master/demo1.png "menv build")

# 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
```