index.js
463 Bytes
const https = require('https');
const app = require('./app');
const constants = require('./constants');
// try {
// const options = constants.CONFIG.HTTPS_OPTIONS;
// https.createServer(options, app).listen(constants.CONFIG.PORT, () => {
// console.log(`[SYSTEM] HTTPS server is running on port ${constants.CONFIG.PORT}`);
// })
// } catch (err) {
// console.log('[SYSTEM] Cannot start HTTPS server.');
// console.log(err);
// }
app.listen(3000);