From 781760812b1b9747c5cff04288bcb78011607f14 Mon Sep 17 00:00:00 2001 From: = <=> Date: Fri, 8 Sep 2017 01:40:45 -0600 Subject: [PATCH] Add full path to phantomjs executable --- Server/src/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/src/app.js b/Server/src/app.js index 5ab7287..56095e4 100644 --- a/Server/src/app.js +++ b/Server/src/app.js @@ -14,7 +14,7 @@ app.get('/cim/:month/:day',function(req,res){ res.sendFile(file); return; } - child = execFile('calendar_image_maker/bin/phantomjs', ['calendar_image_maker/script.js', req.params.month, req.params.day], (error, stdout, stderr) => { + child = execFile(__dirname + '/calendar_image_maker/bin/phantomjs', [__dirname + '/calendar_image_maker/script.js', req.params.month, req.params.day], (error, stdout, stderr) => { console.log("MAKE"); if (error) { throw error;