Fixed bugs; Removed caching that would cause problems with spinning up multiple processes.
This commit is contained in:
4
app.js
4
app.js
@@ -10,12 +10,14 @@ var pingRouter = require('./routes/ping');
|
||||
var app = express();
|
||||
|
||||
let port = 3003;
|
||||
let log = false;
|
||||
|
||||
if(process.env.PORT) port = process.env.PORT;
|
||||
if(process.env.LOG) log = process.env.LOG;
|
||||
|
||||
console.log("Running on port: " + port);
|
||||
|
||||
app.use(logger('dev'));
|
||||
if(log) app.use(logger('dev'));
|
||||
app.use(express.json());
|
||||
app.use(express.urlencoded({ extended: false }));
|
||||
app.use(cookieParser());
|
||||
|
||||
Reference in New Issue
Block a user