摘要:
utils/tools.js: const log4js = require('log4js') //日志初始化 const initLog = (app) => { log4js.configure({ appenders: { out: { type: 'console' }, cheese: 阅读全文
摘要:
app.js: const express = require('express') const bodyParser = require('body-parser') const cors = require('cors') const history = require('connect-his 阅读全文
摘要:
app.js: const express = require('express') const bodyParser = require('body-parser') const cors = require('cors') const history = require('connect-his 阅读全文
摘要:
ecosystem.config.js: module.exports = { apps: [ { name: 'app', script: './app.js', watch: true, ignore_watch: ['node_modules'], node_args: ['--inspect 阅读全文
摘要:
node 打包内存溢出 FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory FATAL ERROR: Ineffective mark-com 阅读全文
摘要:
阅读全文
摘要:
阅读全文
摘要:
const app = express() app.get('/', function(req, res) { res.redirect('/air/origin/master/#/light/index/content?id=0') }) 阅读全文