capistrano-passenger 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +12 -0
- data/README.md +2 -2
- data/lib/capistrano/passenger/version.rb +1 -1
- data/lib/capistrano/tasks/passenger.cap +8 -7
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e2ad7cbc81a6b3ba09065f752e9d3f0d5dc0d082d0f728d6b47211c494d92442
|
4
|
+
data.tar.gz: 22793cd5dc2245698ded45b556472f93c41ffb7bb9e08f8339c1adc28e3dc6bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26633fb785143309de16735414d4d9e5c895a46e7fd6b8a721658a5159c291f4f0238176b7e7d129cc6fedfb11b6b57f3cf8d0f0c801fdad0f55f7609a6947dc
|
7
|
+
data.tar.gz: c2078c3c341b4f7adbf5a231ceae1968ff7c131d2730159a81fde57e05d62e758bf95f0fcd666e9788a65b115f01065f7d6b4bb90f151b4400311838592fc5f9
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
# Not released yet
|
2
|
+
|
3
|
+
# 0.2.1 (5 Apr 2021)
|
4
|
+
* Made passenger-status use the same Command Map prefixes as passenger and passenger-config.
|
5
|
+
Even though it's not used in this project by default, it may be useful in some cases,
|
6
|
+
such as when someone needs to determine the passenger instance ID
|
7
|
+
* Only run passenger commands from the release_path if passenger is in the Gemfile.
|
8
|
+
Otherwise, it may be in a gemset that conflicts with a .ruby-gemset file in release_path.
|
9
|
+
|
10
|
+
# 0.2.0 (8 Dec 2015)
|
11
|
+
* Added support for passenger versions > 5.0.20
|
12
|
+
|
1
13
|
# 0.1.1 (30 June 2015)
|
2
14
|
* Bug fixes:
|
3
15
|
* When detecting passenger version, we account for the fact the the version may not be on the first line of the captured output (@pzgz, capistrano/passenger#20)
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Capistrano::Passenger
|
2
2
|
|
3
|
-
Adds a task to restart your application after deployment via Capistrano. Supports Passenger versions
|
3
|
+
Adds a task to restart your application after deployment via Capistrano. Supports Passenger versions 6 and lower.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -77,7 +77,7 @@ on roles(fetch(:passenger_roles)), in: fetch(:passenger_restart_runner), wait: f
|
|
77
77
|
end
|
78
78
|
```
|
79
79
|
|
80
|
-
Note that `passenger_restart_limit` has no effect if you are using the default `passenger_restart_runner` of `:sequence`. sshkit only looks at it when the runner is `:
|
80
|
+
Note that `passenger_restart_limit` has no effect if you are using the default `passenger_restart_runner` of `:sequence`. sshkit only looks at it when the runner is `:groups`.
|
81
81
|
|
82
82
|
`:passenger_environment_variables` is available if anything about your environment is not available to the user deploying your application. One use-case for this is when `passenger-config` isn't available in your user's `PATH` on the server. You could override it like so:
|
83
83
|
|
@@ -10,14 +10,15 @@ namespace :passenger do
|
|
10
10
|
end
|
11
11
|
on roles(fetch(:passenger_roles)), in: fetch(:passenger_restart_runner), wait: fetch(:passenger_restart_wait), limit: fetch(:passenger_restart_limit) do
|
12
12
|
with fetch(:passenger_environment_variables) do
|
13
|
-
within(release_path) do
|
13
|
+
within(fetch(:passenger_in_gemfile, false) ? release_path : capture(:pwd)) do
|
14
14
|
if restart_with_touch.nil?
|
15
15
|
# 'passenger -v' may output one of the following depending on the version:
|
16
16
|
# Phusion Passenger version x.x.x
|
17
17
|
# Phusion Passenger Enterprise version x.x.x
|
18
18
|
# Phusion Passenger x.x.x
|
19
19
|
# Phusion Passenger Enterprise x.x.x
|
20
|
-
|
20
|
+
# and it may have a (R) after Passenger
|
21
|
+
passenger_version = capture(:passenger, '-v').match(/^Phusion Passenger(\(R\))? (Enterprise )?(version )?(.*)$/)[4]
|
21
22
|
restart_with_touch = Gem::Version.new(passenger_version) < Gem::Version.new('4.0.33')
|
22
23
|
end
|
23
24
|
|
@@ -47,7 +48,7 @@ namespace :passenger do
|
|
47
48
|
task hook: :"passenger:test_which_passenger" do
|
48
49
|
unless fetch(:passenger_in_path)
|
49
50
|
if fetch(:passenger_rvm_ruby_version) == fetch(:rvm_ruby_version)
|
50
|
-
set :rvm_map_bins, fetch(:rvm_map_bins) + [:passenger, :'passenger-config']
|
51
|
+
set :rvm_map_bins, fetch(:rvm_map_bins) + [:passenger, :'passenger-config', :'passenger-status']
|
51
52
|
else
|
52
53
|
after :'rvm:hook', :'passenger:rvm:after_rvm_path_is_set'
|
53
54
|
end
|
@@ -57,7 +58,7 @@ namespace :passenger do
|
|
57
58
|
task :after_rvm_path_is_set do
|
58
59
|
# This is very similar to code in capistrano-rvm. Ideally, there would be a way to hook into that code instead of duplicating it with only minor changes.
|
59
60
|
passenger_rvm_prefix = "#{fetch(:rvm_path)}/bin/rvm #{fetch(:passenger_rvm_ruby_version)} do"
|
60
|
-
[:passenger, :'passenger-config'].each do |command|
|
61
|
+
[:passenger, :'passenger-config', :'passenger-status'].each do |command|
|
61
62
|
SSHKit.config.command_map.prefix[command.to_sym].unshift(passenger_rvm_prefix)
|
62
63
|
end
|
63
64
|
end
|
@@ -65,19 +66,19 @@ namespace :passenger do
|
|
65
66
|
|
66
67
|
namespace :rbenv do
|
67
68
|
task hook: :"passenger:test_which_passenger" do
|
68
|
-
set :rbenv_map_bins, fetch(:rbenv_map_bins) + [:passenger, :'passenger-config'] unless fetch(:passenger_in_path)
|
69
|
+
set :rbenv_map_bins, fetch(:rbenv_map_bins) + [:passenger, :'passenger-config', :'passenger-status'] unless fetch(:passenger_in_path)
|
69
70
|
end
|
70
71
|
end
|
71
72
|
|
72
73
|
namespace :chruby do
|
73
74
|
task hook: :"passenger:test_which_passenger" do
|
74
|
-
set :chruby_map_bins, fetch(:chruby_map_bins) + [:passenger, :'passenger-config'] unless fetch(:passenger_in_path)
|
75
|
+
set :chruby_map_bins, fetch(:chruby_map_bins) + [:passenger, :'passenger-config', :'passenger-status'] unless fetch(:passenger_in_path)
|
75
76
|
end
|
76
77
|
end
|
77
78
|
|
78
79
|
namespace :bundler do
|
79
80
|
task :hook do
|
80
|
-
set :bundle_bins, fetch(:bundle_bins) + [:passenger, :'passenger-config'] if fetch(:passenger_in_gemfile, false)
|
81
|
+
set :bundle_bins, fetch(:bundle_bins) + [:passenger, :'passenger-config', :'passenger-status'] if fetch(:passenger_in_gemfile, false)
|
81
82
|
end
|
82
83
|
end
|
83
84
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-passenger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Isaac Betesh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -117,8 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: '0'
|
119
119
|
requirements: []
|
120
|
-
|
121
|
-
rubygems_version: 2.4.8
|
120
|
+
rubygems_version: 3.1.4
|
122
121
|
signing_key:
|
123
122
|
specification_version: 4
|
124
123
|
summary: Passenger support for Capistrano 3.x
|