Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Rails with Bower. Without bower-rails.

Checkout the blog post for the whole story.

Setup Bower and install components:

npm install -g bower
bower install

Before deploying to Heroku, switch to the multi buildpack:

heroku config:add BUILDPACK_URL=

Then deploy as usual!

"directory": "vendor/assets/components"
module MyApp
class Application < Rails::Application
# ...
config.assets.paths << Rails.root.join("vendor","assets","components")
"name": "my-app",
"dependencies": {
"jquery": "~2.1.0",
"jquery-ujs": "~1.0.1"
"name": "my-app",
"devDependencies": {
"bower": "latest"
"scripts": {
"postinstall": "./node_modules/bower/bin/bower install"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.