1.0.1 • Published 6 years ago

quickswitch-cli v1.0.1

Weekly downloads
2
License
ISC
Repository
-
Last release
6 years ago

安装

# 进入目录
cd quickSwitch
# 安装依赖
npm install
# 运行脚本 (会提示需要root权限)
npm start

目录结构

├── README.md               // 说明
├── basicHosts.txt          // 基础host配置文件(防止错误覆盖)
├── configuration.json      // 服务器环境配置文件
├── configuration.json.example      // 服务器环境配置文件示范
├── demo.gif
├── index.js
├── nginxconf               // nginx文件目录 对应configuration.json中的nginxFileName字段
├── node_modules
├── package-lock.json
└── package.json

configuration.json 结构

{
  ...
  "app": {                                          // 项目唯一标志名
    "ip": "127.0.0.1",                              // 需要映射的地址,对应会设置到host中 一般为127.0.0.1本机地址
    "applicationName": "appname",                   // 项目名称
    "nginxFileName": "nginx",                       // 项目的nginx文件名(不需要.conf)
    "hostname": "hostname",                         // 项目域名
    "api": "http://127.0.0.1/api"                   // 项目api地址(可选)
  },
  ...
}
1.0.1

6 years ago

1.0.0

6 years ago