Skip to content

Commit d61d698

Browse files
committed
Added workaround for magento/magento2#6437
1 parent f48ed04 commit d61d698

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ UNRELEASED
66
* Added ability to only deploy specific themes via the new `:magento_deploy_themes` array
77
* Added `:magento_deploy_confim` setting which requires user confirmation of deployment to specific capistrano stages
88
* Added call to pre-generate secure RequireJS config (issue #21)
9+
* Added workaround for Magento 2.1 specific bug where lack of a deployed_version.txt file would fail static asset deploy
910
* Updated formatting of pending deployment messaging
1011
* Updated composer calls to specify --no-dev and --optimize-autoloader when `:magento_deploy_production` is not set (issue #22, #23)
1112
* Fixed bug causing maintenance mode to be enabled on deploy even when `:magento_deploy_maintenance` was set to false

lib/capistrano/tasks/magento.rake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ namespace :magento do
190190
# Output is being checked for a success message because this command may easily fail due to customizations
191191
# and 2.0.x CLI commands do not return error exit codes on failure. See magento/magento2#3060 for details.
192192
within release_path do
193+
194+
# Workaround for 2.1 specific issue: https://github.com/magento/magento2/pull/6437
195+
execute "touch #{release_path}/pub/static/deployed_version.txt"
196+
193197
output = capture :magento,
194198
"setup:static-content:deploy #{deploy_languages}#{deploy_themes} | stdbuf -o0 tr -d .",
195199
verbosity: Logger::INFO

0 commit comments

Comments
 (0)