File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 143143 // detect if app:config:import is needed on the current (live) release
144144 // do not use {{bin/magento}} as it resolves via release_or_current_path which is unreliable in failure scenarios
145145 run ('{{bin/php}} {{current_path}}/{{magento_dir}}/bin/magento app:config:status ' );
146- } catch (RunException | TimeoutException $ e ) {
146+ } catch (RunException | TimeoutException $ e ) {
147147 if ($ e instanceof RunException && $ e ->getExitCode () == CONFIG_IMPORT_NEEDED_EXIT_CODE ) {
148148 return true ;
149149 }
@@ -330,9 +330,9 @@ function magentoDeployAssetsSplit(string $area)
330330
331331desc ('Set maintenance mode if needed ' );
332332task ('magento:maintenance:enable-if-needed ' , function () {
333- ! get ('enable_zerodowntime ' ) || get ('upgrade_needed ' ) || get ('config_import_needed ' ) ?
334- invoke ('magento:maintenance:enable ' ) :
335- writeln ('Config and database up to date => no maintenance mode ' );
333+ ! get ('enable_zerodowntime ' ) || get ('upgrade_needed ' ) || get ('config_import_needed ' )
334+ ? invoke ('magento:maintenance:enable ' )
335+ : writeln ('Config and database up to date => no maintenance mode ' );
336336});
337337
338338desc ('Config Import ' );
@@ -353,7 +353,7 @@ function magentoDeployAssetsSplit(string $area)
353353 } else {
354354 writeln ('App config import skipped ' );
355355 }
356- } catch (RunException | TimeoutException $ e ) {
356+ } catch (RunException | TimeoutException $ e ) {
357357 writeln ('Unable to import app config on current release => import skipped ' );
358358 }
359359});
You can’t perform that action at this time.
0 commit comments