...
|
...
|
@@ -5,9 +5,9 @@ |
|
|
*/
|
|
|
'use strict';
|
|
|
|
|
|
if (process.env.USE_APM === '1' && process.env.NODE_ENV === 'production') {
|
|
|
require('oneapm');
|
|
|
}
|
|
|
// if (process.env.USE_APM === '1' && process.env.NODE_ENV === 'production') {
|
|
|
// require('oneapm');
|
|
|
// }
|
|
|
|
|
|
const config = require('./config/common');
|
|
|
|
...
|
...
|
@@ -30,6 +30,7 @@ const fp = require('lodash/fp'); |
|
|
const pkg = require('./package.json');
|
|
|
const app = express();
|
|
|
const helpers = global.yoho.helpers;
|
|
|
require('dnscache')({enable: true, ttl: 300, cachesize: 1000});
|
|
|
|
|
|
app.disable('x-powered-by');
|
|
|
|
...
|
...
|
|