capistrano-php-fpm 1.0.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.gitignore +4 -1
- data/CHANGELOG.md +2 -0
- data/Gemfile +0 -1
- data/LICENSE +2 -2
- data/README.md +47 -36
- data/Rakefile +1 -1
- data/capistrano-php-fpm.gemspec +15 -27
- data/lib/capistrano/php_fpm/php_fpm.rake +8 -0
- data/lib/capistrano/php_fpm/systemd.rb +2 -0
- data/lib/capistrano/php_fpm/sysv_upstart.rb +2 -0
- data/lib/capistrano/php_fpm/tasks/systemd.rake +38 -0
- data/lib/capistrano/php_fpm/tasks/sysv_upstart.rake +36 -0
- data/lib/capistrano/php_fpm/version.rb +5 -0
- metadata +29 -42
- data/CODE_OF_CONDUCT.md +0 -13
- data/Gemfile.lock +0 -34
- data/lib/capistrano/php-fpm.rb +0 -1
- data/lib/capistrano/tasks/php-fpm.rake +0 -23
- data/script/bootstrap +0 -3
- data/script/release +0 -3
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
Y2IzMTdkYWIzYTdhOTFhODM0ZDRhMjlkYzQzMDZkMjQ5ZjQ2OTU1Nw==
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8a0bfedbe189e38adf5b99ac43f686adc7cb040bc22dac62d7b611fed72524d4
|
4
|
+
data.tar.gz: 69088649a04169fd529c3c9455daf0ba8ece3de451323a1ee03ce499da76f3e7
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
ZTE4ZWRiMWMzMTk5NTk1NWI2NTFkYWNiNTI4ZjhmOTEwZDgwMjkxODNjOTlm
|
11
|
-
NDhjMTkyYzhmODczZjE5NGI4OTcwYmEzYmM1OGNjZjNhZjc2YTA=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ZTZiOTkxMzg0MjFkYTM0MDZkZDVjNWI0MTc4ZWQ2MWVkYTA3ZGZkYzc4NTU2
|
14
|
-
MGYxNmZiYTAwNmQ0ZmQyZjQ5YjcwMDRlYzc2NTJmMzcxMDUxZmYyZDA1NWRi
|
15
|
-
YzY2MTc5ZWRjMDYxNWI2YzY4MDlhMzY0NGY1ZmYzNWYzMzI0MjI=
|
6
|
+
metadata.gz: e2d6e81e961bf1c4891dddb5dbc0c3ffbc6d394dbd3a748a4d4d99aeb24752c50c4209a0cbb6e15bff1ac46650f6f271d6d6aab0a164eed6f15a643e2c502b0b
|
7
|
+
data.tar.gz: 27b5583d84dbd92a27010cfc3a082574af53870c84d43fdf9568b4637efd0d90634804ea10c6e67102dc986cc15acdd43fce14ee5c62ae9c497e87ae6fd905f6
|
data/.gitignore
CHANGED
data/CHANGELOG.md
ADDED
data/Gemfile
CHANGED
data/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
|
1
|
+
MIT License
|
2
2
|
|
3
|
-
Copyright (c)
|
3
|
+
Copyright (c) 2018 Capistrano Plugins
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.md
CHANGED
@@ -1,69 +1,80 @@
|
|
1
|
-
# Capistrano
|
1
|
+
# Capistrano PHP-FPM
|
2
2
|
|
3
|
-
|
3
|
+
Official Capistrano extension for PHP-FPM tasks.
|
4
|
+
This replaces 1.0.0 of https://rubygems.org/gems/capistrano-fpm. *It differs greatly in configuration.*
|
4
5
|
|
5
|
-
|
6
|
-
|
7
|
-
|
6
|
+
### Environments Supported
|
7
|
+
| systemd | sysv & upstart |
|
8
|
+
|-------- | -------------- |
|
9
|
+
| ```capistrano/php_fpm/systemd``` | ```capistrano/php_fpm/sysv_upstart``` |
|
8
10
|
|
9
11
|
## Installation
|
10
12
|
|
11
13
|
Add this line to your application's Gemfile:
|
12
14
|
|
13
15
|
```ruby
|
14
|
-
gem 'capistrano', '~> 3.
|
16
|
+
gem 'capistrano', '~> 3.2'
|
15
17
|
gem 'capistrano-php-fpm'
|
16
18
|
```
|
17
19
|
|
18
|
-
|
19
|
-
|
20
|
-
$ bundle
|
20
|
+
## Usage
|
21
21
|
|
22
|
-
|
22
|
+
Require one of the above 'Environments Supported' in your `Capfile`:
|
23
23
|
|
24
|
-
|
24
|
+
```ruby
|
25
|
+
require 'capistrano/php_fpm/sysv_upstart'
|
26
|
+
```
|
25
27
|
|
26
|
-
|
28
|
+
`capistrano/php_fpm` comes with 5 tasks:
|
27
29
|
|
28
|
-
|
30
|
+
* php_fpm:reload
|
31
|
+
* php_fpm:restart
|
32
|
+
* php_fpm:stop
|
33
|
+
* php_fpm:start
|
34
|
+
* php_fpm:zap
|
29
35
|
|
30
|
-
|
31
|
-
|
36
|
+
You can execute the task on command line:
|
37
|
+
|
38
|
+
```bash
|
39
|
+
cap production php_fpm:reload
|
32
40
|
```
|
33
41
|
|
34
|
-
|
42
|
+
And configure it on your `deploy.rb` file:
|
35
43
|
|
36
44
|
```ruby
|
37
|
-
|
38
|
-
after
|
45
|
+
namespace :deploy do
|
46
|
+
after :finishing, 'php_fpm:reload'
|
47
|
+
after :rollback, 'php_fpm:reload'
|
48
|
+
end
|
39
49
|
```
|
40
50
|
|
41
|
-
|
51
|
+
### Configuration
|
42
52
|
|
43
|
-
Configurable options:
|
53
|
+
Configurable options shown here are also the defaults:
|
44
54
|
|
45
55
|
```ruby
|
46
|
-
set :
|
47
|
-
set :
|
48
|
-
set :
|
49
|
-
set :
|
56
|
+
set :php_fpm_with_sudo, true
|
57
|
+
set :php_fpm_roles, :web
|
58
|
+
set :php_fpm_service_name, 'php-fpm' # Change this if you have non-standard naming for the php-fpm service
|
59
|
+
set :systemctl_location, '/bin/systemctl' # May already exist if you use other plugins. Be sure to check your config/deploy/{env} file
|
50
60
|
```
|
51
61
|
|
52
|
-
|
62
|
+
### More Capistrano automation?
|
63
|
+
|
64
|
+
Check out [capistrano-plugins](https://github.com/capistrano-plugins) github org.
|
65
|
+
|
66
|
+
### Contributing and bug reports
|
67
|
+
|
68
|
+
Contributions and improvements are very welcome.
|
53
69
|
|
54
|
-
|
70
|
+
If something is not working for you, or you find a bug please report it.
|
55
71
|
|
56
|
-
|
72
|
+
### Thanks
|
57
73
|
|
58
|
-
|
59
|
-
|
60
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
61
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
62
|
-
5. Create new Pull Request
|
74
|
+
* [Sullivan Senechal](https://github.com/Soullivaneuh) @ [NexyLan](https://www.nexylan.com) - Original creator of sysv & upstart code plugin this is heavily based on
|
75
|
+
* [Emil Kilhage](https://github.com/kilhage) - For letting us use https://rubygems.org/gems/capistrano-php-fpm
|
63
76
|
|
64
|
-
## License
|
65
77
|
|
66
|
-
|
78
|
+
### License
|
67
79
|
|
68
|
-
[
|
69
|
-
[www.glooby.se](https://www.glooby.se)
|
80
|
+
[MIT](LICENSE.md)
|
data/Rakefile
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require
|
1
|
+
require 'bundler/gem_tasks'
|
data/capistrano-php-fpm.gemspec
CHANGED
@@ -1,33 +1,21 @@
|
|
1
|
-
#
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'capistrano/php_fpm/version'
|
4
5
|
|
5
|
-
Gem::Specification.new do |
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = 'capistrano-php-fpm'
|
8
|
+
gem.version = Capistrano::PHP_FPM::VERSION
|
9
|
+
gem.summary = 'Capistrano extension for PHP-FPM tasks'
|
10
|
+
gem.description = 'Executes PHP-FPM service tasks like zap or restart from Capistrano'
|
11
|
+
gem.authors = ['Sullivan Senechal, Nathan Pierce']
|
12
|
+
gem.email = ['soullivaneuh@gmail.com','connarpierce@gmail.com']
|
13
|
+
gem.homepage = 'https://github.com/capistrano-plugins/capistrano-php-fpm'
|
14
|
+
gem.license = 'MIT'
|
10
15
|
|
11
|
-
|
12
|
-
|
13
|
-
spec.homepage = "https://github.com/glooby/capistrano-php-fpm"
|
14
|
-
spec.license = "MIT"
|
16
|
+
gem.files = `git ls-files`.split($/)
|
17
|
+
gem.require_paths = ['lib']
|
15
18
|
|
16
|
-
|
17
|
-
|
18
|
-
if spec.respond_to?(:metadata)
|
19
|
-
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
20
|
-
else
|
21
|
-
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
22
|
-
end
|
23
|
-
|
24
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
25
|
-
spec.bindir = "exe"
|
26
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
27
|
-
spec.require_paths = ["lib"]
|
28
|
-
|
29
|
-
spec.add_dependency 'capistrano', '>= 3.0.0'
|
30
|
-
|
31
|
-
spec.add_development_dependency "bundler", "~> 1.10"
|
32
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
19
|
+
gem.add_dependency 'capistrano', '~> 3.2'
|
20
|
+
gem.add_development_dependency 'rake', '~> 10.1'
|
33
21
|
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
namespace :'php_fpm' do
|
2
|
+
desc 'Reload php_fpm'
|
3
|
+
task :reload do
|
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)}.service") : execute(fetch(:systemctl_location), "reload #{fetch(:php_fpm_service_name)}.service")
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
desc 'Zap php_fpm'
|
10
|
+
task :zap do
|
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)}.service") : execute(fetch(:systemctl_location), "zap #{fetch(:php_fpm_service_name)}.service")
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
desc 'Stop php_fpm'
|
17
|
+
task :stop do
|
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)}.service") : execute(fetch(:systemctl_location), "stop #{fetch(:php_fpm_service_name)}.service")
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
desc 'Start php_fpm'
|
24
|
+
task :start do
|
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)}.service") : execute(fetch(:systemctl_location), "start #{fetch(:php_fpm_service_name)}.service")
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
desc 'Restart php_fpm'
|
31
|
+
task :restart do
|
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)}.service") : execute(fetch(:systemctl_location), "restart #{fetch(:php_fpm_service_name)}.service")
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
namespace :'php_fpm' do
|
2
|
+
desc 'Reload php_fpm'
|
3
|
+
task :reload do
|
4
|
+
on release_roles(fetch(:php_fpm_roles)) do
|
5
|
+
fetch(:php_fpm_with_sudo) ? execute(:sudo, "/etc/init.d/#{fetch(:php_fpm_service_name)}", 'reload') : execute("/etc/init.d/#{fetch(:php_fpm_service_name)}", 'reload')
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
desc 'Zap php_fpm'
|
10
|
+
task :zap do
|
11
|
+
on release_roles(fetch(:php_fpm_roles)) do
|
12
|
+
fetch(:php_fpm_with_sudo) ? execute(:sudo, "/etc/init.d/#{fetch(:php_fpm_service_name)}", 'zap') : execute("/etc/init.d/#{fetch(:php_fpm_service_name)}", 'zap')
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
desc 'Stop php_fpm'
|
17
|
+
task :stop do
|
18
|
+
on release_roles(fetch(:php_fpm_roles)) do
|
19
|
+
fetch(:php_fpm_with_sudo) ? execute(:sudo, "/etc/init.d/#{fetch(:php_fpm_service_name)}", 'stop') : execute("/etc/init.d/#{fetch(:php_fpm_service_name)}", 'stop')
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
desc 'Start php_fpm'
|
24
|
+
task :start do
|
25
|
+
on release_roles(fetch(:php_fpm_roles)) do
|
26
|
+
fetch(:php_fpm_with_sudo) ? execute(:sudo, "/etc/init.d/#{fetch(:php_fpm_service_name)}", 'start') : execute("/etc/init.d/#{fetch(:php_fpm_service_name)}", 'start')
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
desc 'Restart php_fpm'
|
31
|
+
task :restart do
|
32
|
+
on release_roles(fetch(:php_fpm_roles)) do
|
33
|
+
fetch(:php_fpm_with_sudo) ? execute(:sudo, "/etc/init.d/#{fetch(:php_fpm_service_name)}", 'restart') : execute("/etc/init.d/#{fetch(:php_fpm_service_name)}", 'restart')
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
metadata
CHANGED
@@ -1,99 +1,86 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-php-fpm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Sullivan Senechal, Nathan Pierce
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.
|
19
|
+
version: '3.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: bundler
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ~>
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '1.10'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ~>
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.10'
|
26
|
+
version: '3.2'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: rake
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
|
-
- - ~>
|
31
|
+
- - "~>"
|
46
32
|
- !ruby/object:Gem::Version
|
47
|
-
version: '10.
|
33
|
+
version: '10.1'
|
48
34
|
type: :development
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
|
-
- - ~>
|
38
|
+
- - "~>"
|
53
39
|
- !ruby/object:Gem::Version
|
54
|
-
version: '10.
|
55
|
-
description:
|
40
|
+
version: '10.1'
|
41
|
+
description: Executes PHP-FPM service tasks like zap or restart from Capistrano
|
56
42
|
email:
|
57
|
-
-
|
43
|
+
- soullivaneuh@gmail.com
|
44
|
+
- connarpierce@gmail.com
|
58
45
|
executables: []
|
59
46
|
extensions: []
|
60
47
|
extra_rdoc_files: []
|
61
48
|
files:
|
62
|
-
- .gitignore
|
63
|
-
-
|
49
|
+
- ".gitignore"
|
50
|
+
- CHANGELOG.md
|
64
51
|
- Gemfile
|
65
|
-
- Gemfile.lock
|
66
52
|
- LICENSE
|
67
53
|
- README.md
|
68
54
|
- Rakefile
|
69
55
|
- capistrano-php-fpm.gemspec
|
70
|
-
- lib/capistrano/
|
71
|
-
- lib/capistrano/
|
72
|
-
-
|
73
|
-
-
|
74
|
-
|
56
|
+
- lib/capistrano/php_fpm/php_fpm.rake
|
57
|
+
- lib/capistrano/php_fpm/systemd.rb
|
58
|
+
- lib/capistrano/php_fpm/sysv_upstart.rb
|
59
|
+
- lib/capistrano/php_fpm/tasks/systemd.rake
|
60
|
+
- lib/capistrano/php_fpm/tasks/sysv_upstart.rake
|
61
|
+
- lib/capistrano/php_fpm/version.rb
|
62
|
+
homepage: https://github.com/capistrano-plugins/capistrano-php-fpm
|
75
63
|
licenses:
|
76
64
|
- MIT
|
77
|
-
metadata:
|
78
|
-
allowed_push_host: https://rubygems.org
|
65
|
+
metadata: {}
|
79
66
|
post_install_message:
|
80
67
|
rdoc_options: []
|
81
68
|
require_paths:
|
82
69
|
- lib
|
83
70
|
required_ruby_version: !ruby/object:Gem::Requirement
|
84
71
|
requirements:
|
85
|
-
- -
|
72
|
+
- - ">="
|
86
73
|
- !ruby/object:Gem::Version
|
87
74
|
version: '0'
|
88
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
76
|
requirements:
|
90
|
-
- -
|
77
|
+
- - ">="
|
91
78
|
- !ruby/object:Gem::Version
|
92
79
|
version: '0'
|
93
80
|
requirements: []
|
94
81
|
rubyforge_project:
|
95
|
-
rubygems_version: 2.4
|
82
|
+
rubygems_version: 2.7.4
|
96
83
|
signing_key:
|
97
84
|
specification_version: 4
|
98
|
-
summary:
|
85
|
+
summary: Capistrano extension for PHP-FPM tasks
|
99
86
|
test_files: []
|
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
# Contributor Code of Conduct
|
2
|
-
|
3
|
-
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
-
|
5
|
-
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
|
6
|
-
|
7
|
-
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
-
|
9
|
-
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
-
|
11
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
-
|
13
|
-
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/Gemfile.lock
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
capistrano-php-fpm (1.0.0)
|
5
|
-
capistrano (>= 3.0.0)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
capistrano (3.4.0)
|
11
|
-
i18n
|
12
|
-
rake (>= 10.0.0)
|
13
|
-
sshkit (~> 1.3)
|
14
|
-
colorize (0.7.7)
|
15
|
-
i18n (0.7.0)
|
16
|
-
net-scp (1.2.1)
|
17
|
-
net-ssh (>= 2.6.5)
|
18
|
-
net-ssh (3.0.1)
|
19
|
-
rake (10.4.2)
|
20
|
-
sshkit (1.7.1)
|
21
|
-
colorize (>= 0.7.0)
|
22
|
-
net-scp (>= 1.1.2)
|
23
|
-
net-ssh (>= 2.8.0)
|
24
|
-
|
25
|
-
PLATFORMS
|
26
|
-
ruby
|
27
|
-
|
28
|
-
DEPENDENCIES
|
29
|
-
bundler (~> 1.10)
|
30
|
-
capistrano-php-fpm!
|
31
|
-
rake (~> 10.0)
|
32
|
-
|
33
|
-
BUNDLED WITH
|
34
|
-
1.10.5
|
data/lib/capistrano/php-fpm.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
load File.expand_path('../tasks/php-fpm.rake', __FILE__)
|
@@ -1,23 +0,0 @@
|
|
1
|
-
namespace :php_fpm do
|
2
|
-
desc "Reloads php-fpm"
|
3
|
-
task :reload do
|
4
|
-
on roles fetch(:php_fpm_reload_roles) do
|
5
|
-
execute fetch(:php_fpm_reload_command)
|
6
|
-
end
|
7
|
-
end
|
8
|
-
desc "Restarts php-fpm"
|
9
|
-
task :restart do
|
10
|
-
on roles fetch(:php_fpm_restart_roles) do
|
11
|
-
execute fetch(:php_fpm_restart_command)
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
namespace :load do
|
17
|
-
task :defaults do
|
18
|
-
set :php_fpm_reload_roles, :all
|
19
|
-
set :php_fpm_reload_command, '/etc/init.d/php-fpm reload'
|
20
|
-
set :php_fpm_restart_roles, :all
|
21
|
-
set :php_fpm_restart_command, '/etc/init.d/php-fpm reload'
|
22
|
-
end
|
23
|
-
end
|
data/script/bootstrap
DELETED
data/script/release
DELETED