forked from ByteInternet/hypernode-deploy-configuration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMagento1.php
39 lines (31 loc) · 885 Bytes
/
Magento1.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
namespace Hypernode\DeployConfiguration\ApplicationTemplate;
use Hypernode\DeployConfiguration\Configuration;
class Magento1 extends Configuration
{
public function __construct()
{
parent::__construct();
$this->initializeDefaultConfiguration();
}
/**
* Initialize defaults
*/
private function initializeDefaultConfiguration(): void
{
$this->setRecipe('magento1');
$this->addBuildTask('deploy:vendors');
$this->addDeployTask('magento1:maintenance_mode:enable');
$this->addDeployTask('magento1:sys:setup:run');
$this->addDeployTask('magento1:cache:flush');
$this->setSharedFiles([
'app/etc/local.xml',
'errors/local.xml',
]);
$this->setSharedFolders([
'var',
'media',
'sitemap',
]);
}
}