capistrano-deploy-management 0.1.44 → 0.1.45
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
|
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.name = 'capistrano-deploy-management'
|
4
4
|
s.description = 'Collection of Capistrano recipes for deploying Rails apps into high-performance environments'
|
5
|
-
s.version = '0.1.
|
5
|
+
s.version = '0.1.45'
|
6
6
|
s.platform = Gem::Platform::RUBY
|
7
7
|
s.authors = ['Dominik Rodler']
|
8
8
|
s.email = ['dominik.rodler@gmail.com']
|
data/changelog.md
CHANGED
@@ -4,18 +4,14 @@ module CapistranoDeployManagement
|
|
4
4
|
configuration.load do
|
5
5
|
|
6
6
|
set(:unicorn_config) { "#{current_path}/config/unicorn.rb" }
|
7
|
-
# FIXME: Restarting fails, because PID does not exist -> symlink already points to new, empty folder
|
8
|
-
# set(:unicorn_pidfile) { "#{deploy_to}/shared/pids/unicorn.pid" }
|
9
|
-
# set(:unicorn_pid) { "cat #{deploy_to}/shared/pids/unicorn.pid" }
|
10
7
|
set(:unicorn_pidfile) { "#{previous_release}/tmp/pids/unicorn.pid" }
|
11
|
-
set(:unicorn_pid) { "cat #{previous_release}/tmp/pids/unicorn.pid" }
|
12
8
|
|
13
9
|
namespace :unicorn do
|
14
10
|
desc 'Restart unicorn.'
|
15
11
|
task :restart, :roles => :app do
|
16
|
-
|
17
|
-
unicorn.stop
|
18
|
-
unicorn.start
|
12
|
+
run "if [ -f #{unicorn_pidfile} ] && [ -e $(cat #{unicorn_pidfile}) ]; then #{try_sudo} kill -s USR2 $(cat #{unicorn_pidfile}); else cd #{current_path} && bundle exec unicorn -c #{unicorn_config} -E #{rails_env} -D; fi"
|
13
|
+
# unicorn.stop
|
14
|
+
# unicorn.start
|
19
15
|
end
|
20
16
|
|
21
17
|
desc 'Start unicorn.'
|