vigetlabs / gulp-rails-pipeline

Ditch the Rails Asset Pipeline and roll your own with Gulp
MIT License
646 stars 64 forks source link

Heroku - Couldn't find the file 'global' #17

Closed joaovpmamede closed 9 years ago

joaovpmamede commented 9 years ago

Tried to deploy a clone of the repo but unfortunately it seems that, at least for the first time you can't require any assets from gems.

Because heroku has a "buildpack-detect-order" it runs ruby before the nodejs stuff. https://devcenter.heroku.com/articles/buildpacks#default-buildpacks

What happens is the following

-----> Preparing app for Rails asset pipeline
       Running: rake assets:precompile
       rake aborted!
       Sprockets::FileNotFound: couldn't find file 'global'
       (in /tmp/build_555261d13cd0900aa0a0d6e8b80d45dc/app/assets/javascripts/application.js:12)
joaovpmamede commented 9 years ago

Nevermind, just had to run this:

heroku config:add BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git

Next time I'll try to read the docs first.