diff --git a/autoploy_main.js b/autoploy_main.js index 5b01b6f..c53b8e3 100644 --- a/autoploy_main.js +++ b/autoploy_main.js @@ -13,7 +13,7 @@ app.use(BodyParser.json()); app.use(express.static(path.join(__dirname, 'public'))); app.get('/', (req, res) => { - var lines = require('fs').readFileSync("./public/logs.out", 'utf-8').split('\n') + var lines = require('fs').readFileSync(path.join(__dirname, 'public/logs.out'), 'utf-8').split('\n') var out = "" for(var i = 0 ; i < lines.length ; i++) { out = out + "
" + lines[i]