mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-23 00:32:25 +01:00
parent
b6d646d8e3
commit
0305fc26f0
@ -59,8 +59,8 @@ set('clear_paths', [
|
||||
set('magento_version', function () {
|
||||
// detect version
|
||||
$versionOutput = run('{{bin/php}} {{release_or_current_path}}/bin/magento --version');
|
||||
preg_match('/(\d+\.?)+$/', $versionOutput, $matches);
|
||||
return $matches[0] ?? "2.0";
|
||||
preg_match('/(\d+\.?)+(-p\d+)?$/', $versionOutput, $matches);
|
||||
return $matches[0] ?? '2.0';
|
||||
});
|
||||
|
||||
set('maintenance_mode_status_active', function () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user