-
Notifications
You must be signed in to change notification settings - Fork 5
/
deploy.php
45 lines (37 loc) · 1.21 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
<?php
namespace Deployer;
require 'vendor/jalogut/magento2-deployer-plus/recipe/magento_2_2_5.php';
// Use timestamp for release name
set('release_name', function () {
return date('YmdHis');
});
// Magento dir into the project root. Set "." if magento is installed on project root
set('magento_dir', '.');
// [Optional] Git repository. Only needed if not using build + artifact strategy
set('repository', '');
// Space separated list of languages for static-content:deploy
set('languages', 'en_US');
set('dev_modules', [
'Magento_TestModule1',
'Magento_TestModule2',
'Magento_TestModule3',
'Magento_TestModule4',
'Magento_TestModule5',
'Magento_TestModuleDefaultHydrator',
'Magento_TestModuleDirectoryZipCodes',
'Magento_TestModuleFakePaymentMethod',
'Magento_TestModuleIntegrationFromConfig',
'Magento_TestModuleJoinDirectives',
'Magento_TestModuleMSC',
'Magento_TestModuleSample'
]);
// Build host
localhost('build');
// Remote Servers
host('release')
->hostname(getenv('DEPLOY_SERVER_HOSTNAME'))
->user(getenv('DEPLOY_USER_NAME'))
->set('deploy_path', '/var/www/html')
->identityFile('~/.ssh/magento-deploy-key')
->stage('dev')
->roles('master');