capistrano-symfony 2.0.0.pre.alfa2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/CHANGELOG.md +5 -0
- data/README.md +26 -10
- data/capistrano-symfony.gemspec +1 -1
- data/lib/capistrano/dsl/symfony.rb +3 -1
- data/lib/capistrano/symfony/defaults.rb +5 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 047a489b72266c63a310f6de519e3c0c2b179147
|
4
|
+
data.tar.gz: d040cac3108bc5e97916767f0e8bd4a4bb6e850a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3243ce266ada023b98d819875cbfd699b50a7b7a3c1084a52c1bc5cb057dc25c32e34067a77ba61fce1403151d2afa8dc94b349ac320c8f4c5ba7c13a6ce72b
|
7
|
+
data.tar.gz: f19964eec244a360726a00d0cba67d1dd150c9655b81cdb5998fc60576638c2427c02a40253fc1992a2f78c2025a83812ec089dd25f91241c815664a88a00a2c
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -28,7 +28,7 @@ Specify your dependencies:
|
|
28
28
|
# Gemfile
|
29
29
|
source 'https://rubygems.org'
|
30
30
|
gem 'capistrano', '~> 3.11'
|
31
|
-
gem 'capistrano-symfony', '~> 2.0.0
|
31
|
+
gem 'capistrano-symfony', '~> 2.0.0'
|
32
32
|
```
|
33
33
|
|
34
34
|
Install your dependencies:
|
@@ -43,15 +43,18 @@ to set up your local files:
|
|
43
43
|
cap install
|
44
44
|
```
|
45
45
|
|
46
|
-
Make Capistrano aware of `'capistrano/symfony' by
|
47
|
-
new Capfile
|
46
|
+
Make Capistrano aware of `'capistrano/symfony'` by requiring capistrano-symfony in your
|
47
|
+
new Capfile after `require "capistrano/deploy"`.
|
48
48
|
|
49
|
-
```
|
49
|
+
```ruby
|
50
50
|
# Capfile
|
51
|
-
|
51
|
+
# ...
|
52
|
+
require "capistrano/symfony"
|
53
|
+
```
|
52
54
|
|
53
|
-
|
54
|
-
|
55
|
+
If you use composer you might want this:
|
56
|
+
```
|
57
|
+
require "capistrano/composer"
|
55
58
|
```
|
56
59
|
|
57
60
|
## Usage
|
@@ -93,7 +96,7 @@ set :assets_install_path, "public"
|
|
93
96
|
set :assets_install_flags, '--symlink'
|
94
97
|
|
95
98
|
# Share files/directories between releases
|
96
|
-
set :linked_dirs, ["var/
|
99
|
+
set :linked_dirs, ["var/log"]
|
97
100
|
set :linked_files, []
|
98
101
|
# To use a .env file:
|
99
102
|
#set :linked_files, [".env"]
|
@@ -220,13 +223,22 @@ end
|
|
220
223
|
|
221
224
|
### Using composer
|
222
225
|
|
223
|
-
If you use composer
|
226
|
+
If you use composer you can install `capistrano/composer`. Here are some short
|
227
|
+
instructions. Read more at [capistrano/composer](https://github.com/capistrano/composer).
|
228
|
+
|
229
|
+
First run the following command to download the library:
|
230
|
+
|
231
|
+
```
|
232
|
+
gem install capistrano-composer
|
233
|
+
```
|
234
|
+
|
235
|
+
Then make sure your Capfile includes the following:
|
224
236
|
|
225
237
|
```
|
226
238
|
require 'capistrano/composer'
|
227
239
|
```
|
228
240
|
|
229
|
-
To download the composer executable add the following to your `deploy.rb`:
|
241
|
+
To download the composer.phar executable add the following to your `deploy.rb`:
|
230
242
|
|
231
243
|
```
|
232
244
|
# First define deploy target:
|
@@ -234,6 +246,10 @@ set :deploy_to, "/home/sites/com.example"
|
|
234
246
|
|
235
247
|
# Install composer if it does not exist
|
236
248
|
SSHKit.config.command_map[:composer] = "php #{shared_path.join("composer.phar")}"
|
249
|
+
|
250
|
+
namespace :deploy do
|
251
|
+
after :starting, 'composer:install_executable'
|
252
|
+
end
|
237
253
|
```
|
238
254
|
|
239
255
|
[1]: http://capistranorb.com/documentation/getting-started/flow/
|
data/capistrano-symfony.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "capistrano-symfony"
|
7
|
-
gem.version = '2.0.0
|
7
|
+
gem.version = '2.0.0'
|
8
8
|
gem.authors = ["Peter Mitchell"]
|
9
9
|
gem.email = ["pete@peterjmit.com"]
|
10
10
|
gem.description = %q{Symfony specific Capistrano tasks}
|
@@ -39,7 +39,9 @@ module Capistrano
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def symfony_console(command, params = '')
|
42
|
-
|
42
|
+
on release_roles(fetch(:symfony_deploy_roles)) do
|
43
|
+
execute fetch(:php), symfony_console_path, command, params, fetch(:symfony_console_flags)
|
44
|
+
end
|
43
45
|
end
|
44
46
|
|
45
47
|
end
|
@@ -14,6 +14,9 @@ set :web_path, "public"
|
|
14
14
|
set :log_path, -> { fetch(:var_path) + "/log" }
|
15
15
|
set :cache_path, -> { fetch(:var_path) + "/cache" }
|
16
16
|
|
17
|
+
# PHP executable used to run commands
|
18
|
+
set :php, "php"
|
19
|
+
|
17
20
|
# console
|
18
21
|
set :symfony_console_path, -> { fetch(:bin_path) + "/console" }
|
19
22
|
set :symfony_console_flags, "--no-debug"
|
@@ -25,7 +28,7 @@ set :assets_install_flags, '--symlink'
|
|
25
28
|
#
|
26
29
|
# Capistrano defaults
|
27
30
|
#
|
28
|
-
set :linked_files, -> { [
|
31
|
+
set :linked_files, -> { [] }
|
29
32
|
set :linked_dirs, -> { [fetch(:log_path)] }
|
30
33
|
|
31
34
|
#
|
@@ -37,4 +40,4 @@ set :permission_method, false
|
|
37
40
|
|
38
41
|
# Role filtering
|
39
42
|
set :symfony_roles, :all
|
40
|
-
set :symfony_deploy_roles, :all
|
43
|
+
set :symfony_deploy_roles, :all
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-symfony
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Mitchell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -98,12 +98,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: '0'
|
99
99
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: '0'
|
104
104
|
requirements: []
|
105
105
|
rubyforge_project:
|
106
|
-
rubygems_version: 2.
|
106
|
+
rubygems_version: 2.5.2.3
|
107
107
|
signing_key:
|
108
108
|
specification_version: 4
|
109
109
|
summary: Capistrano Symfony - Easy deployment of Symfony 4 apps with Ruby over SSH
|