Add full path to phantomjs executable
parent
1a454d6d25
commit
781760812b
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue