README.md in capistrano-rails-0.0.7 vs README.md in capistrano-rails-1.0.0
- old
+ new
@@ -3,17 +3,30 @@
Rails specific tasks for Capistrano v3:
- `cap deploy:migrate`
- `cap deploy:normalise_assets`
-Assumes that `RAILS_ENV` matches stage, tasks are currently early examples
+Tasks are currently early examples.
+Some rails specific options.
+
+```ruby
+set :rails_env, 'staging' # If the environment differs from the stage
+set :migration_role, 'migrator' # Defaults to 'db'
+```
+
+If you need to touch `public/images`, `public/javascripts` and `public/stylesheets` on each deploy:
+
+```ruby
+set :normalize_asset_timestamps, %{public/images public/javascripts public/stylesheets}
+```
+
## Installation
Add this line to your application's Gemfile:
- gem 'capistrano', version: '~> 3.0.0'
- gem 'capistrano-rails', version: '~> 1.0.0'
+ gem 'capistrano', '~> 3.0.0'
+ gem 'capistrano-rails'
And then execute:
$ bundle --binstubs
$ cap install