Bowerを導入します。
node.js
$ brew upgrade node
bower-rails
$ vim Gemfile
gem 'jbuilder', '~> 2.0'
gem 'enumerize'
gem 'factory_girl_rails'
+gem 'bower-rails'
group :development, :test do
gem 'spring'
$ rails g bower_rails:initialize
assetを追加
$ vim Bowerfile
なんか、いろいろ
asset 'reset-css'
asset 'jquery-ujs'
asset 'jquery-ui'
asset 'components-font-awesome'
$ rake bower:install
herokuにあげたい場合
$ heroku config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-multi.git
$ vim .buildpacks
https://github.com/heroku/heroku-buildpack-nodejs
https://github.com/heroku/heroku-buildpack-ruby
heroku buttonの設置例
$ vim app.json
"repository": "https://github.com/ppworks/furikaeri",
"scripts": {
"postdeploy": "bundle exec rake db:migrate && bundle exec rake db:seed"
+ },
+ "env": {
+ "BUILDPACK_URL": "https://github.com/heroku/heroku-buildpack-multi.git"
}
}