chanh-http-plugin
v0.0.2
Published
chanh-http-plugin ===========================
Downloads
6
Readme
chanh-http-plugin
Require chanh >1.2.8
##Usage
The configure code in app.js is as follows:
var httpServerPlugin = require('chanh-http-plugin');
app.configure('production|development', function() {
if(!app.isMaster()){
app.use(httpServerPlugin.httpServer, {
httpServer:{} //portHttp will read at app.getCurServer()
});
}
});
OR
var httpServerPlugin = require('chanh-http-plugin');
app.configure('production|development', function() {
if(!app.isMaster()){
app.use(httpServerPlugin.httpServer, {
httpServer:{
portHttp: 8081
}
});
}
});
