Add full path to phantomjs executable

Transactions
= 2017-09-08 01:40:45 -06:00
parent 1a454d6d25
commit 781760812b
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ app.get('/cim/:month/:day',function(req,res){
res.sendFile(file); res.sendFile(file);
return; 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"); console.log("MAKE");
if (error) { if (error) {
throw error; throw error;