pre-warning-system/README.md
2025-06-19 18:04:42 +08:00

1.4 KiB

DEMO

###########环境依赖 node.js

###########部署步骤

  1. 添加系统环境变量 export $PORTAL_VERSION="production" // production, test, dev

  2. npm install //安装node运行环境

  3. npm run dev //前端编译

  4. 启动两个配置(已forever为例) eg: forever start app-service.js forever start logger-service.js

###########目录结构描述 ├── Readme.md // help ├── app // 应用 ├── config // 配置 │ ├── default.json │ ├── dev.json // 开发环境 │ ├── experiment.json // 实验 │ ├── index.js // 配置控制 │ ├── local.json // 本地 │ ├── production.json // 生产环境 │ └── test.json // 测试环境 ├── data ├── doc // 文档 ├── environment ├── gulpfile.js ├── locales ├── logger-service.js // 启动日志配置 ├── node_modules ├── package.json ├── app-service.js // 启动应用配置 ├── static // web静态资源加载 │ └── initjson │ └── config.js // 提供给前端的配置 ├── test ├── test-service.js └── tools