working directory comes from env file
This commit is contained in:
parent
62473aee92
commit
172b00b9ee
8
index.js
8
index.js
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user