specifiy env
This commit is contained in:
parent
172b00b9ee
commit
6c0e98b13e
8
index.js
8
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){
|
||||
|
Loading…
Reference in New Issue
Block a user