-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathShopware6.php
70 lines (59 loc) · 1.74 KB
/
Shopware6.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
namespace Hypernode\DeployConfiguration\ApplicationTemplate;
use Hypernode\DeployConfiguration\Configuration;
class Shopware6 extends Configuration
{
public function __construct()
{
parent::__construct();
$this->initializeDefaultConfiguration();
}
/**
* Initialize defaults
*
*/
private function initializeDefaultConfiguration(): void
{
$this->setRecipe('shopware6');
$this->setPublicFolder('public');
$this->setComposerOptions([
'--verbose',
'--no-progress',
'--no-interaction',
'--optimize-autoloader',
]);
$this->addBuildTask('deploy:vendors');
$this->addBuildTask('sw:deploy:vendors_recovery');
$this->addBuildTask('sw:touch_install_lock');
$this->addDeployTask('sw:build');
$this->addDeployTask('sw:database:migrate');
$this->addDeployTask('sw:cache:clear');
$this->addDeployTask('sw:cache:warmup');
$this->setSharedFiles([
'.env',
'install.lock',
'public/.user.ini',
]);
$this->setSharedFolders([
'config/jwt',
'files',
'var/log',
'public/sitemap',
'public/media',
'public/thumbnail',
]);
// Override the default deploy exclude, because we need the source files (scss/ts)
// on the deploy step to compile the assets.
$this->setDeployExclude([
'./.git',
'./.github',
'./deploy.php',
'./.gitlab-ci.yml',
'./Jenkinsfile',
'.DS_Store',
'.idea',
'.gitignore',
'.editorconfig',
]);
}
}