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.
Hey... installation of the phantomjs excecutable is handled by the node-phantomjs npm module: https://github.com/sgentle/phantomjs-node, so unfortunately you'll have to open the issue there.
Im assuming it's a heroku issue since this hasn't been noted anywhere else.
I'm leaving this issue open though so you can report back :) Failing a resolution from npm-phantomjs, I could just implement a variation of your hack into meteor-phantomjs... since this may affect others.
Thanks very much. Opened an issue there.
Hi @gadicc!
I had the same problem as @llama and chmod +x worked.
Thanks for letting it opened and for doing the package!