0.0.2 • Published 8 years ago
chanh-http-plugin v0.0.2
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
}
});
}
});