fix: set now NO_LOGFILES

This commit is contained in:
DIYgod 2020-04-28 18:28:28 +08:00
parent fedfc741d5
commit 8a2528d33f
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
3 changed files with 5 additions and 5 deletions

View File

@ -1,10 +1,10 @@
const config = require('../lib/config');
const app = require('../lib/app');
config.set({
noLogFiles: true,
NO_LOGFILES: true,
});
const app = require('../lib/app');
module.exports = (req, res) => {
app.callback()(req, res);
};

View File

@ -25,7 +25,7 @@ const calculateValue = () => {
}
value = {
isPackage: false,
isPackage: envs.IS_PACKAGE,
noLogfiles: envs.NO_LOGFILES,
connect: {
port: envs.PORT || 1200, // 监听端口

View File

@ -6,7 +6,7 @@ module.exports = {
config.set(
Object.assign(
{
isPackage: true,
IS_PACKAGE: true,
},
conf
)