app.js
567 Bytes
const express = require('express');
const config = require('./config/config');
//const https = require('https');
//const fs = require('fs');
const app = express();
require('./config/express')(app, config);
/*
https.createServer({
key: fs.readFileSync(config.ssl.key),
cert: fs.readFileSync(config.ssl.cert)
}, app).listen(config.port, function () {
console.log('Express server listening on https://localhost:' + config.port);
});*/
app.listen(config.port, function () {
console.log('Express server listening on port ' + config.port);
});
module.exports = app;