eht
v1.0.64
Published
simple.
Downloads
36
Readme
eht
simple.
框架
中间件
插件
- cors: 暴露 Authorization 头部
配置
- 监听 3000 端口
- 依赖本地服务还是 A1 基地的服务:
config.developServiceHost = process.env.local ? 'localhost' : '192.168.1.76'
- 生产环境下会将日志放置到
/var/log/app/${appInfo.name}
QuickStart
$ npm install
$ npm test
publish your framework to npm, then change app's dependencies:
// {app_root}/index.js
require('eht').startCluster({
baseDir: __dirname,
// port: 7001, // default to 7001
});