capistrano-magento2 0.8.3 → 0.8.4
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ceedfed216ec83b563f241bd230c9d7a990875f1cc553211116b8808c9b73604
|
|
4
|
+
data.tar.gz: 45c3812c5eb54c44e8855832f48db8d082c315c829b0546fb41f2285c7656463
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cd5774cd3385e73c0c048b3143266008edc7055d6b7c6983ae7521bbfea5006532a457fca02271b0206313a7be9acb8359bffbf5c944d463abfcd38e221876bc
|
|
7
|
+
data.tar.gz: ae08f7d15fb85d385df3682e606a751c3cbbad535e39d52c82db4a6238642557f085ad56dfc1a96fd132d1fd4f38974d1b00845f639c788da0239776f0d235a4
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Capistrano::Magento2 Change Log
|
|
2
2
|
|
|
3
|
+
0.8.4
|
|
4
|
+
==========
|
|
5
|
+
|
|
6
|
+
* Disabled call to `magento:setup:db:schema:upgrade` when running a zero-down deployment
|
|
7
|
+
* Disabled call to `magento:setup:db:data:upgrade` when running a zero-down deployment
|
|
8
|
+
* Fixed possible race condition in `magento:deploy:mode:production` when `app/etc/env.php` resides on an NFS share
|
|
9
|
+
|
|
3
10
|
0.8.3
|
|
4
11
|
==========
|
|
5
12
|
|
|
@@ -65,3 +65,6 @@ set :magento_deploy_pending_format, fetch(
|
|
|
65
65
|
:magento_deploy_pending_format,
|
|
66
66
|
'--pretty="format:%C(yellow)%h %Cblue%>(12)%ai %Cgreen%<(7)%aN%Cred%d %Creset%s"'
|
|
67
67
|
)
|
|
68
|
+
|
|
69
|
+
# internal flags
|
|
70
|
+
set :magento_internal_zero_down_flag, fetch(:magento_internal_zero_down_flag, false)
|
|
@@ -44,14 +44,14 @@ namespace :deploy do
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
invoke 'magento:setup:db:schema:upgrade'
|
|
48
|
-
invoke 'magento:setup:db:data:upgrade'
|
|
49
|
-
|
|
47
|
+
invoke 'magento:setup:db:schema:upgrade' if not fetch(:magento_internal_zero_down_flag)
|
|
48
|
+
invoke 'magento:setup:db:data:upgrade' if not fetch(:magento_internal_zero_down_flag)
|
|
49
|
+
|
|
50
50
|
# The app:config:import command was introduced in 2.2.0; check if it exists before invoking it
|
|
51
51
|
on primary fetch(:magento_deploy_setup_role) do
|
|
52
52
|
within release_path do
|
|
53
53
|
if test :magento, 'app:config:import --help >/dev/null 2>&1'
|
|
54
|
-
if fetch(:
|
|
54
|
+
if not fetch(:magento_internal_zero_down_flag)
|
|
55
55
|
invoke 'magento:app:config:import'
|
|
56
56
|
end
|
|
57
57
|
end
|
|
@@ -159,7 +159,7 @@ namespace :magento do
|
|
|
159
159
|
namespace :mode do
|
|
160
160
|
desc "Enables production mode"
|
|
161
161
|
task :production do
|
|
162
|
-
on release_roles
|
|
162
|
+
on release_roles(:all), in: :sequence, wait: 1 do
|
|
163
163
|
within release_path do
|
|
164
164
|
execute :magento, "deploy:mode:set production --skip-compilation"
|
|
165
165
|
end
|
|
@@ -482,7 +482,8 @@ namespace :magento do
|
|
|
482
482
|
set :magento_deploy_maintenance, false
|
|
483
483
|
elsif disable_maintenance
|
|
484
484
|
info "There are no database updates or config changes. This is a zero-down deployment."
|
|
485
|
-
set :
|
|
485
|
+
set :magento_internal_zero_down_flag, true # Set internal flag to stop db schema/data upgrades from running
|
|
486
|
+
set :magento_deploy_maintenance, false # Disable maintenance mode management since it is not neccessary
|
|
486
487
|
else
|
|
487
488
|
info "Maintenance mode usage will be enforced per :magento_deploy_maintenance (setting is #{fetch(:magento_deploy_maintenance).to_s})"
|
|
488
489
|
end
|
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.8.
|
|
4
|
+
version: 0.8.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: 2018-06-
|
|
11
|
+
date: 2018-06-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capistrano
|