@krissself/deploy-env
v1.0.2
Published
Deploy env By ConfigFile
Downloads
11
Readme
Deploy Env By Config
in project root, create an
environments
dirmake a config file
config.js
inenvironments
dir
const path = require('path')
module.exports = {
deploy_path: path.join(__dirname, '../'),
envs: {
dev: path.join(__dirname, 'dev'),
t1: path.join(__dirname, 't1'),
t2: path.join(__dirname, 't2'),
}
}
- put your envs files to dir under
environments
dir like:
- root
- environments
- dev a.xx b.xx
- t1 a.xx b.xx
- t2 a.xx b.xx
- config.js
- environments
- open cmd and exec
deploy-env -e <env>
(replace with yourenvs
key)
files in <env>
dir will be copy to deploy_path