README.md in capistrano-rails-1.1.6 vs README.md in capistrano-rails-1.1.7
- old
+ new
@@ -14,10 +14,22 @@
gem 'capistrano', '~> 3.1'
gem 'capistrano-rails', '~> 1.1'
end
```
+Run the following command to install the gems:
+
+```
+bundle install
+```
+
+Then run the generator to create a basic set of configuration files:
+
+```
+bundle exec cap install
+```
+
## Usage
Require everything (`bundler`, `rails/assets` and `rails/migrations`):
```ruby
@@ -55,15 +67,19 @@
# Defaults to 'assets'
# This should match config.assets.prefix in your rails config/application.rb
set :assets_prefix, 'prepackaged-assets'
# If you need to touch public/images, public/javascripts, and public/stylesheets on each deploy
-set :normalize_asset_timestamps, %{public/images public/javascripts public/stylesheets}
+set :normalize_asset_timestamps, %w{public/images public/javascripts public/stylesheets}
# Defaults to nil (no asset cleanup is performed)
# If you use Rails 4+ and you'd like to clean up old assets after each deploy,
# set this to the number of versions to keep
set :keep_assets, 2
+
+# Defaults to the primary :db server
+set :migration_role, :db
+set :migration_servers, -> { primary(fetch(:migration_role)) }
```
### Symlinks
You'll probably want to symlink Rails shared files and directories like `log`, `tmp` and `public/uploads`.