specifiy env

This commit is contained in:
Paul Trowbridge 2019-03-27 12:50:09 -04:00
parent 172b00b9ee
commit 6c0e98b13e

View File

@ -13,8 +13,8 @@ var readline = require('readline');
//------------------------------------------------------- //-------------------------------------------------------
var options = { var options = {
key: fs.readFileSync(wd + 'key.pem'), key: fs.readFileSync(process.env.wd + 'key.pem'),
cert: fs.readFileSync(wd + 'cert.pem'), cert: fs.readFileSync(process.env.wd + 'cert.pem'),
passprase: [] 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('/', (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){ server.get('/test_sql', function(req, res){