capistrano-magento2 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +3 -0
- data/lib/capistrano/magento2/defaults.rb +2 -0
- data/lib/capistrano/magento2/version.rb +1 -1
- data/lib/capistrano/tasks/deploy.rake +1 -0
- data/lib/capistrano/tasks/magento.rake +11 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c28c8853fc1ad5cbd6f71307babf6f930264f717
|
4
|
+
data.tar.gz: a7aa576949fe6e30d15e32cd9ac720d38fc515cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ff54488c83b5d3704b552ac492d8098ad8c14a4d9f11ff1c36eabe419c23037c8671fecdece7b4a68b7da6a7490d32772431d2071539ba63a24990b9f3b4e58
|
7
|
+
data.tar.gz: 8dcf73fe054d0b677430072b587c74603ca1cccbd375cdaf65f8f975328e081ced3beb53b0ce6ccf5ff92ec39ea767dac8f7091b7e87ae2e7c5059968bdbd447
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -148,6 +148,7 @@ For the sake of simplicity in new project setups `:linked_dirs` and `:linked_fil
|
|
148
148
|
```ruby
|
149
149
|
set :linked_files, [
|
150
150
|
'app/etc/env.php',
|
151
|
+
'app/etc/config.local.php',
|
151
152
|
'var/.setup_cronjob_status',
|
152
153
|
'var/.update_cronjob_status'
|
153
154
|
]
|
@@ -171,6 +172,8 @@ If you would like to customize the linked files or directories for your project,
|
|
171
172
|
append :linked_dirs, 'path/to/link'
|
172
173
|
```
|
173
174
|
|
175
|
+
Support for a `app/etc/config.local.php` configuration file was added to Magento 2.1.6. This file will be linked in from the `shared/app/etc` directory as of v0.6.4 of this gem. If this file is present in the project repository, the file will not be linked.
|
176
|
+
|
174
177
|
### Composer Auth Credentials
|
175
178
|
|
176
179
|
Magento 2's composer repository requires auth credentials to install. These can be set on target servers in a global composer `auth.json` file, the project's `composer.json` or by setting them in your deployment configuration using the following two settings:
|
@@ -9,12 +9,14 @@
|
|
9
9
|
|
10
10
|
set :linked_files, fetch(:linked_files, []).push(
|
11
11
|
'app/etc/env.php',
|
12
|
+
'app/etc/config.local.php',
|
12
13
|
'var/.setup_cronjob_status',
|
13
14
|
'var/.update_cronjob_status'
|
14
15
|
)
|
15
16
|
|
16
17
|
set :linked_files_touch, fetch(:linked_files_touch, []).push(
|
17
18
|
'app/etc/env.php',
|
19
|
+
'app/etc/config.local.php',
|
18
20
|
'var/.setup_cronjob_status',
|
19
21
|
'var/.update_cronjob_status'
|
20
22
|
)
|
@@ -11,6 +11,7 @@ include Capistrano::Magento2::Helpers
|
|
11
11
|
|
12
12
|
namespace :deploy do
|
13
13
|
before 'deploy:check:linked_files', 'magento:deploy:check'
|
14
|
+
before 'deploy:symlink:linked_files', 'magento:deploy:local_config'
|
14
15
|
|
15
16
|
before :starting, :confirm_action do
|
16
17
|
if fetch(:magento_deploy_confirm).include? fetch(:stage).to_s
|
@@ -155,6 +155,17 @@ namespace :magento do
|
|
155
155
|
end
|
156
156
|
exit 1 if is_err
|
157
157
|
end
|
158
|
+
|
159
|
+
task :local_config do
|
160
|
+
on release_roles :all do
|
161
|
+
if test "[ -f #{release_path}/app/etc/config.local.php ]"
|
162
|
+
info "The repository contains app/etc/config.local.php, removing from :linked_files list."
|
163
|
+
_linked_files = fetch(:linked_files, [])
|
164
|
+
_linked_files.delete('app/etc/config.local.php')
|
165
|
+
set :linked_files, _linked_files
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|
158
169
|
end
|
159
170
|
|
160
171
|
namespace :setup do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-magento2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Alger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|