meteor-phantomjs
meteor-phantomjs copied to clipboard
Bad permissions on Heroku
On heroku, after deploying with this module (using this meteorite buildpack) gives the following error:
phantomjs failed: { [Error: Command failed: /bin/bash: /app/.meteor/heroku_build/app/programs/server/npm/phantomjs/main/node_modules/phantomjs-sun/lib/phantom/bin/phantomjs: Permission denied
Running heroku run bash
and trying to run phantomjs gives Permission Denied
, but chmod +x phantomjs
fixes it. So my hack is to use child_process
and set the execute bit on PJS during the server's Meteor.startup
, but it's ugly.