Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asset precompilation failing #610

Closed
christopherdbull opened this issue Aug 3, 2017 · 2 comments
Closed

Asset precompilation failing #610

christopherdbull opened this issue Aug 3, 2017 · 2 comments

Comments

@christopherdbull
Copy link

Hi, I'm having a weird issue and I'm not really sure where this belongs. I've made a ticket on Webpacker, as that was my first suspect, but I wonder if it's not more appropriate over here.

rails/webpacker#611

Basically, my deploys are all crashing on assets:precompile, claiming that node isn't available. This is despite the individual tasks all completing successfully when run with heroku run.

This is the output:

remote: -----> Detecting rake tasks
remote: -----> Preparing app for Rails asset pipeline
remote:        Running: rake assets:precompile
remote:        /usr/bin/env: ‘node’: No such file or directory
remote:        I, [2017-08-03T09:02:56.853456 #386]  INFO -- : Writing /tmp/build_8c9433d70588461997fe92fb589ad63b/public/assets/application-4686b818638f6733ef663ff96aa2bb9a7c1ee1fa04ffcb01931142cc7bce910a.js
remote:        I, [2017-08-03T09:02:56.853976 #386]  INFO -- : Writing /tmp/build_8c9433d70588461997fe92fb589ad63b/public/assets/application-4686b818638f6733ef663ff96aa2bb9a7c1ee1fa04ffcb01931142cc7bce910a.js.gz
remote:        I, [2017-08-03T09:02:56.859639 #386]  INFO -- : Writing /tmp/build_8c9433d70588461997fe92fb589ad63b/public/assets/application-f0d704deea029cf000697e2c0181ec173a1b474645466ed843eb5ee7bb215794.css
remote:        I, [2017-08-03T09:02:56.859867 #386]  INFO -- : Writing /tmp/build_8c9433d70588461997fe92fb589ad63b/public/assets/application-f0d704deea029cf000697e2c0181ec173a1b474645466ed843eb5ee7bb215794.css.gz
remote:        vendor/bundle/bin/rake: No such file or directory - node
remote:  !
remote:  !     Precompiling assets failed.
remote:  !
remote:  !     Push rejected, failed to compile Ruby app.
remote: 
remote:  !     Push failed

Happy to provide any other details.

@schneems
Copy link
Contributor

schneems commented Aug 3, 2017

For now add execjs to your Gemfile and re-deploy, that should fix the issue. Alternatively you can use master of the buildpack.

@christopherdbull
Copy link
Author

Thanks @schneems , this let it go through.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants