rharriso / bower-rails

Bundler-like DSL + rake tasks for Bower on Rails
MIT License
1.46k stars 128 forks source link

Heroku Deployment Error/Docs #124

Closed ajbraus closed 9 years ago

ajbraus commented 9 years ago

Hi, I use bower-rails in dev and now am trying to deploy to heroku. I thought it might be good to add some docs to the gem for that.

The problem is heroku does not see the bower_components in my vendor/assets file even though I've added the path to my application.rb file

  config.assets.paths << Rails.root.join('vendor', 'assets', 'bower_components')

Heroku push origin master:

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

How do you require angular in application.js?

ajbraus commented 9 years ago

Sorry figured this out. I was not checking bower_components into github! Sorry!