working directory comes from env file

This commit is contained in:
Paul Trowbridge 2019-03-27 12:28:51 -04:00
parent 62473aee92
commit 172b00b9ee

View File

@ -13,8 +13,8 @@ var readline = require('readline');
//-------------------------------------------------------
var options = {
key: fs.readFileSync('//var/www/forecast_api/key.pem'),
cert: fs.readFileSync('//var/www/forecast_api/cert.pem'),
key: fs.readFileSync(wd + 'key.pem'),
cert: fs.readFileSync(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('//var/www/forecast_api/msauth.html'))
server.get('/login', (req, res) => res.sendFile(wd + 'msauth.html'))
server.get('/logs', (req, res) => res.sendFile('//var/www/forecast_api/logs.html'))
server.get('/logs', (req, res) => res.sendFile(wd + 'logs.html'))
server.get('/test_sql', function(req, res){