capistrano-php-fpm 2.0.1 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/capistrano/php_fpm/php_fpm.rake +1 -0
- data/lib/capistrano/php_fpm/tasks/systemd.rake +5 -5
- data/lib/capistrano/php_fpm/version.rb +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f012b8bea6af454a9756f27dd7cd4b0ac78057e18783cb04d9f6332297cb85ec
|
4
|
+
data.tar.gz: 59c5b7ad7d8c4ebf27c71e2b243408fe65e8db1aabe50eb4464387577d7497f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e28a0532bda7a8531d63b7c9f11f49c881a481f6ea3cf65648f2a448d2a82b59433994b2338c03eb033d55e7b561ccf66c5fe0aab37d29bc171750b21e852b1b
|
7
|
+
data.tar.gz: 22428ed84818fbcd905fcb97cad5096fe9c5def53410c26b0a9caa6146663f00d526aab224d9517c217a1c8972210b981a4cdbb5b02756f535f567d7aa0bd9d2
|
data/README.md
CHANGED
@@ -56,6 +56,7 @@ Configurable options shown here are also the defaults:
|
|
56
56
|
set :php_fpm_with_sudo, true
|
57
57
|
set :php_fpm_roles, :web
|
58
58
|
set :php_fpm_service_name, 'php-fpm' # Change this if you have non-standard naming for the php-fpm service
|
59
|
+
set :php_fpm_service_suffix, '.service' # Only used for systemd environment, change this if your service name is not sufixed by this
|
59
60
|
set :systemctl_location, '/bin/systemctl' # May already exist if you use other plugins. Be sure to check your config/deploy/{env} file
|
60
61
|
```
|
61
62
|
|
@@ -2,35 +2,35 @@ namespace :'php_fpm' do
|
|
2
2
|
desc 'Reload php_fpm'
|
3
3
|
task :reload do
|
4
4
|
on release_roles(fetch(:php_fpm_roles)) do
|
5
|
-
fetch(:php_fpm_with_sudo) ? execute(:sudo, fetch(:systemctl_location), "reload #{fetch(:php_fpm_service_name)}
|
5
|
+
fetch(:php_fpm_with_sudo) ? execute(:sudo, fetch(:systemctl_location), "reload #{fetch(:php_fpm_service_name)}#{fetch(:php_fpm_service_suffix)}") : execute(fetch(:systemctl_location), "reload #{fetch(:php_fpm_service_name)}#{fetch(:php_fpm_service_suffix)}")
|
6
6
|
end
|
7
7
|
end
|
8
8
|
|
9
9
|
desc 'Zap php_fpm'
|
10
10
|
task :zap do
|
11
11
|
on release_roles(fetch(:php_fpm_roles)) do
|
12
|
-
fetch(:php_fpm_with_sudo) ? execute(:sudo, fetch(:systemctl_location), "zap #{fetch(:php_fpm_service_name)}
|
12
|
+
fetch(:php_fpm_with_sudo) ? execute(:sudo, fetch(:systemctl_location), "zap #{fetch(:php_fpm_service_name)}#{fetch(:php_fpm_service_suffix)}") : execute(fetch(:systemctl_location), "zap #{fetch(:php_fpm_service_name)}#{fetch(:php_fpm_service_suffix)}")
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
16
16
|
desc 'Stop php_fpm'
|
17
17
|
task :stop do
|
18
18
|
on release_roles(fetch(:php_fpm_roles)) do
|
19
|
-
fetch(:php_fpm_with_sudo) ? execute(:sudo, fetch(:systemctl_location), "stop #{fetch(:php_fpm_service_name)}
|
19
|
+
fetch(:php_fpm_with_sudo) ? execute(:sudo, fetch(:systemctl_location), "stop #{fetch(:php_fpm_service_name)}#{fetch(:php_fpm_service_suffix)}") : execute(fetch(:systemctl_location), "stop #{fetch(:php_fpm_service_name)}#{fetch(:php_fpm_service_suffix)}")
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
23
|
desc 'Start php_fpm'
|
24
24
|
task :start do
|
25
25
|
on release_roles(fetch(:php_fpm_roles)) do
|
26
|
-
fetch(:php_fpm_with_sudo) ? execute(:sudo, fetch(:systemctl_location), "start #{fetch(:php_fpm_service_name)}
|
26
|
+
fetch(:php_fpm_with_sudo) ? execute(:sudo, fetch(:systemctl_location), "start #{fetch(:php_fpm_service_name)}#{fetch(:php_fpm_service_suffix)}") : execute(fetch(:systemctl_location), "start #{fetch(:php_fpm_service_name)}#{fetch(:php_fpm_service_suffix)}")
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
30
|
desc 'Restart php_fpm'
|
31
31
|
task :restart do
|
32
32
|
on release_roles(fetch(:php_fpm_roles)) do
|
33
|
-
fetch(:php_fpm_with_sudo) ? execute(:sudo, fetch(:systemctl_location), "restart #{fetch(:php_fpm_service_name)}
|
33
|
+
fetch(:php_fpm_with_sudo) ? execute(:sudo, fetch(:systemctl_location), "restart #{fetch(:php_fpm_service_name)}#{fetch(:php_fpm_service_suffix)}") : execute(fetch(:systemctl_location), "restart #{fetch(:php_fpm_service_name)}#{fetch(:php_fpm_service_suffix)}")
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-php-fpm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sullivan Senechal, Nathan Pierce
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -63,7 +63,7 @@ homepage: https://github.com/capistrano-plugins/capistrano-php-fpm
|
|
63
63
|
licenses:
|
64
64
|
- MIT
|
65
65
|
metadata: {}
|
66
|
-
post_install_message:
|
66
|
+
post_install_message:
|
67
67
|
rdoc_options: []
|
68
68
|
require_paths:
|
69
69
|
- lib
|
@@ -78,9 +78,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
78
|
- !ruby/object:Gem::Version
|
79
79
|
version: '0'
|
80
80
|
requirements: []
|
81
|
-
|
82
|
-
|
83
|
-
signing_key:
|
81
|
+
rubygems_version: 3.3.23
|
82
|
+
signing_key:
|
84
83
|
specification_version: 4
|
85
84
|
summary: Capistrano extension for PHP-FPM tasks
|
86
85
|
test_files: []
|