diff --git a/index.js b/index.js index 95011ca..3dc0805 100644 --- a/index.js +++ b/index.js @@ -13,8 +13,8 @@ var readline = require('readline'); //------------------------------------------------------- var options = { - key: fs.readFileSync(wd + 'key.pem'), - cert: fs.readFileSync(wd + 'cert.pem'), + key: fs.readFileSync(process.env.wd + 'key.pem'), + cert: fs.readFileSync(process.env.wd + 'cert.pem'), passprase: [] }; @@ -47,9 +47,9 @@ Postgres.FirstRow = function (inSQL, args, inResponse) { server.get('/', (req, res) => res.send('node.js express is up and running')) -server.get('/login', (req, res) => res.sendFile(wd + 'msauth.html')) +server.get('/login', (req, res) => res.sendFile(process.env.wd + 'msauth.html')) -server.get('/logs', (req, res) => res.sendFile(wd + 'logs.html')) +server.get('/logs', (req, res) => res.sendFile(process.env.wd + 'logs.html')) server.get('/test_sql', function(req, res){