matrix-public-archive/server/server.js

17 lines
366 B
JavaScript

'use strict';
console.log('server process.env.NODE_ENV', process.env.NODE_ENV);
const express = require('express');
const installRoutes = require('./routes/install-routes');
const config = require('./lib/config');
const basePort = config.get('basePort');
const app = express();
installRoutes(app);
const server = app.listen(basePort);
module.exports = server;