meteor-phantomjs icon indicating copy to clipboard operation
meteor-phantomjs copied to clipboard

Bad permissions on Heroku

Open llama opened this issue 11 years ago • 3 comments

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.

llama avatar Feb 16 '14 01:02 llama

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.

gadicc avatar Feb 16 '14 07:02 gadicc

Thanks very much. Opened an issue there.

llama avatar Feb 17 '14 02:02 llama

Hi @gadicc!

I had the same problem as @llama and chmod +x worked.

Thanks for letting it opened and for doing the package!

guilhermedecampo avatar Mar 21 '14 04:03 guilhermedecampo