Skip to content

Commit

Permalink
Update to Capistrano 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
swalkinshaw committed Mar 1, 2014
1 parent bc3772d commit 82d2ff8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 14 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### HEAD

* Update to Capistrano 3.1.0: `deploy:restart` is no longer run by default
* Better webroot structure: introduces the `/web` directory as the document/web root for web server vhosts

### 1.0.0: 2013-12-18
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source 'https://rubygems.org'

gem 'capistrano', '~> 3.0.1'
gem 'capistrano', '~> 3.1.0'
gem 'capistrano-composer'
18 changes: 9 additions & 9 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
GEM
remote: https://rubygems.org/
specs:
capistrano (3.0.1)
capistrano (3.1.0)
i18n
rake (>= 10.0.0)
sshkit (>= 0.0.23)
sshkit (~> 1.3)
capistrano-composer (0.0.3)
capistrano (>= 3.0.0.pre)
i18n (0.6.9)
net-scp (1.1.2)
net-ssh (>= 2.6.5)
net-ssh (2.7.0)
rake (10.1.0)
sshkit (1.2.0)
net-ssh (2.8.0)
rake (10.1.1)
sshkit (1.3.0)
net-scp (>= 1.1.2)
net-ssh
term-ansicolor
term-ansicolor (1.2.2)
tins (~> 0.8)
tins (0.13.1)
term-ansicolor (1.3.0)
tins (~> 1.0)
tins (1.0.0)

PLATFORMS
ruby

DEPENDENCIES
capistrano (~> 3.0.1)
capistrano (~> 3.1.0)
capistrano-composer
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Using Capistrano for deploys?

Required Gems:

* capistrano (> 3.0.1)
* capistrano (> 3.1.0)
* capistrano-composer

These can be installed manually with `gem install <gem name>` but it's highly suggested you use [Bundler](http://bundler.io/) to manage them. Bundler is basically the Ruby equivalent to PHP's Composer. Just as Composer manages your PHP packages/dependencies, Bundler manages your Ruby gems/dependencies. Bundler itself is a Gem and can be installed via `gem install bundler` (sudo may be required).
Expand Down
7 changes: 4 additions & 3 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@
set :linked_dirs, %w{app/uploads}

namespace :deploy do

desc 'Restart application'
task :restart do
on roles(:app), in: :sequence, wait: 5 do
# This task is required by Capistrano but can be a no-op
# Your restart mechanism here, for example:
# execute :service, :nginx, :reload
end
end

end

# The above restart task is not run by default
# Uncomment the following line to run it on deploys if needed
# after 'deploy:publishing', 'deploy:restart'

0 comments on commit 82d2ff8

Please sign in to comment.