-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeploy.php
100 lines (86 loc) · 2.17 KB
/
deploy.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?php
namespace Deployer;
require_once 'deploy-shopware.php';
/**
* Set your repository URL here.
*/
set('repository', 'URL to your repository goes here');
set('git_tty', true);
set('ssh_multiplexing', true);
set('writable_use_sudo', false);
/**
* Warming the cache may take some time therefore it is not enabled by default. Set to true if you wish to warm up the cache after every deployment.
*/
set('warm_cache_after_deployment', false);
/**
* Adjust the path to the php executable if necessary
*/
set('bin/php', '/usr/bin/php');
set('bin/composer', '{{bin/php}} {{release_path}}/bin/composer.phar');
/**
* Adjust shopware package links and update version to match the correct shopware version
*/
set(
'shopware_download_path',
'http://releases.s3.shopware.com.s3.amazonaws.com/install_5.5.1_4a48054b7c53187c807d6a6d82ec88ffb72b5e6a.zip'
);
set('shopware_update_version', '5.5.1');
set(
'shopware_update_path',
'http://releases.s3.shopware.com.s3.amazonaws.com/update_5.5.1_d9e440b141186b6ee91b2f6e6a98a37455c5e2ce.zip'
);
/**
* These plugins will be installed and updated during deployment. Make sure they are availabe in the filesystem.
*/
set(
'plugins',
[
'Cron',
'NetcomMigrations',
'K10rProject',
]
);
/**
* Use this to set plugin configurations during deployment
*/
set(
'plugin_config',
[
// 'SwagImportExport' => [
// [
// 'name' => 'useCommaDecimal',
// 'value' => 0,
// 'shopId' => 1, // shopId is optional
// ],
// ],
]
);
/**
* Use this to set theme configurations during deployment
*/
set(
'theme_config',
[
// 'YourCustomThemeName' => [
// 'offcanvasCart' => 0,
// ],
]
);
/**
* Use this to set shopware configurations during deployment
*/
set(
'shopware_config',
[
// [
// 'name' => 'disableShopwareStatistics',
// 'value' => 1,
// 'shopId' => 1, // shopId is optional
// ],
]
);
/**
* Enable and adjust the socket if you need to reset OPCache
*/
//add('fcgi_sockets', ['/var/run/php-fpm.sock']);
inventory('deploy-hosts.yml');