//var server = require('./server'); //server.listen(process.env.nodeport); var options = { key: fs.readFileSync(process.env.wd + 'key.pem'), cert: fs.readFileSync(process.env.wd + 'cert.pem'), passprase: [] }; https.createServer(options, server).listen(process.env.nodeport, () => { console.log('started on ' + process.env.nodeport) });