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);
|
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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue