capistrano-magento2 0.2.4 → 0.3.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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/capistrano/magento2/version.rb +1 -1
- data/lib/capistrano/tasks/deploy.rake +4 -2
- data/lib/capistrano/tasks/magento.rake +8 -1
- 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: 481fdaea28179deaba14faf4fc32faf31c242dd3
|
|
4
|
+
data.tar.gz: 3e1652dabf3cf81c1129a135dc1bff02ecb6ba66
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 767336b3783b537c4698cd458bb58222f727cd35c9228cfbc3d1722bc5caecdc083742946a4c3d545dd7998daa2f374d83832cdb4ddc52aaa78062e0953b9a0d
|
|
7
|
+
data.tar.gz: 52794a258d96c8c79c13f1245fe747d75dd18826fe3ff43a9d8d2d2ffd06c9e98385725a6777508bcff06ad72d913bbd37729a89a971425d8d96a2b14a7cc90d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Capistrano::Magento2 Change Log
|
|
2
2
|
|
|
3
|
+
0.3.0
|
|
4
|
+
==========
|
|
5
|
+
|
|
6
|
+
* Added `:magento_deploy_production` flag to disable production deploy commands (PR #10 by @giacmir).
|
|
7
|
+
* Added `:magento_deploy_languages` setting to support passing language list to static content generator (PR #11 by @giacmir).
|
|
8
|
+
|
|
3
9
|
0.2.4
|
|
4
10
|
==========
|
|
5
11
|
|
|
@@ -15,8 +15,10 @@ namespace :deploy do
|
|
|
15
15
|
invoke 'magento:deploy:verify'
|
|
16
16
|
invoke 'magento:composer:install'
|
|
17
17
|
invoke 'magento:setup:permissions'
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
if fetch(:magento_deploy_production)
|
|
19
|
+
invoke 'magento:setup:static-content:deploy'
|
|
20
|
+
invoke 'magento:setup:di:compile'
|
|
21
|
+
end
|
|
20
22
|
invoke 'magento:setup:permissions'
|
|
21
23
|
if test '-d #{current_path}'
|
|
22
24
|
within current_path do
|
|
@@ -170,10 +170,14 @@ namespace :magento do
|
|
|
170
170
|
desc 'Deploys static view files'
|
|
171
171
|
task :deploy do
|
|
172
172
|
on release_roles :all do
|
|
173
|
+
deploy_languages = fetch(:magento_deploy_languages).join(' ')
|
|
173
174
|
within release_path do
|
|
174
175
|
# TODO: Remove custom error detection logic once magento/magento2#3060 is resolved
|
|
175
176
|
# Currently the cli tool is not reporting failures via the exit code, so manual detection is neccesary
|
|
176
|
-
output = capture :magento,
|
|
177
|
+
output = capture :magento,
|
|
178
|
+
"setup:static-content:deploy #{deploy_languages}| stdbuf -o0 tr -d .",
|
|
179
|
+
verbosity: Logger::INFO
|
|
180
|
+
|
|
177
181
|
if not output.to_s.include? 'New version of deployed files'
|
|
178
182
|
raise Exception, 'Failed to compile static assets'
|
|
179
183
|
end
|
|
@@ -299,5 +303,8 @@ namespace :load do
|
|
|
299
303
|
'var/session',
|
|
300
304
|
'var/tmp'
|
|
301
305
|
)
|
|
306
|
+
|
|
307
|
+
set :magento_deploy_production, fetch(:magento_deploy_production, true) # TODO: Document deploy mode setting
|
|
308
|
+
set :magento_deploy_languages, fetch(:magento_deploy_languages, []) # TODO: Document deploy lang setting
|
|
302
309
|
end
|
|
303
310
|
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.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Alger
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-06-
|
|
11
|
+
date: 2016-06-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capistrano
|