-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.php
More file actions
61 lines (50 loc) · 1.21 KB
/
Copy pathdeploy.php
File metadata and controls
61 lines (50 loc) · 1.21 KB
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
<?php
/**
* Deploy
*
* @package Orbis_Keychains
*/
declare(strict_types=1);
namespace Deployer;
require 'recipe/common.php';
set( 'plugin_slug', 'orbis-keychains' );
set( 'build_path', './build/' );
host( 'orbis.pronamic.nl' )
->set( 'hostname', 'esm7.siteground.biz' )
->set( 'remote_user', 'u155-jlog1cramrrx' )
->set( 'port', 18765 )
->set( 'deploy_path', '~/projects/wp-orbis-keychains' )
->set( 'plugins_dir', '~/www/orbis.pronamic.nl/public_html/wp-content/plugins' );
/**
* Build.
*
* @link https://github.com/woocommerce/woocommerce/blob/48fdb94bf311c977d15cbaa3d8dab66bac01feb7/plugins/woocommerce/.distignore
* @link https://github.com/woocommerce/woocommerce/blob/48fdb94bf311c977d15cbaa3d8dab66bac01feb7/plugins/woocommerce/bin/build-zip.sh
*/
task(
'build',
function () {
runLocally( 'composer run-script build' );
}
);
task(
'deploy:update_code',
function () {
upload( '{{build_path}}/orbis-keychains/', '{{release_path}}' );
}
);
task(
'deploy:symlink_plugin',
function () {
run( 'ln -sfn {{deploy_path}}/current {{plugins_dir}}/{{plugin_slug}}' );
}
);
after( 'deploy:symlink', 'deploy:symlink_plugin' );
task(
'deploy',
[
'build',
'deploy:prepare',
'deploy:publish',
]
);