capistrano 用 db:seed タスク
capistrano/rails の migrations タスクのあとに db:seed の呼び出しを追加する
assets を読み込むと、 precompile の前に RAILS_GROUPS=assets の設定を行う
これは turbo-sprockets-rails3 が RAILS_GROUPS と RAILS_ENV がないと他の環境変数を引き継がないで precompile を起動することを防ぐ
Add this line to your application's Gemfile:
gem 'ans-capistrano-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ans-capistrano-rails
# Capfile
require "capistrano/bundler"
require "ans/capistrano/rails/seeds"
require "ans/capistrano/rails/assets"
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request