-
-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathdeployment.sample.php
More file actions
42 lines (38 loc) · 801 Bytes
/
deployment.sample.php
File metadata and controls
42 lines (38 loc) · 801 Bytes
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
<?php declare(strict_types=1);
return [
'my site' => [
'remote' => 'ftp://user:secretpassword@ftp.example.com/directory',
'local' => '.',
'test' => false,
'ignore' => '
/deployment.*
/log
temp/*
!temp/.htaccess
*/tests
',
'include' => '
/app
/app/*
/index.php
',
'allowDelete' => true,
'before' => [
function (Deployment\Server $server, Deployment\Logger $logger, Deployment\Deployer $deployer) {
$logger->log('Hello!');
},
],
'afterUpload' => [
'http://example.com/deployment.php?afterUpload',
],
'after' => [
'http://example.com/deployment.php?after',
],
'purge' => [
'temp/cache',
],
'preprocess' => ['combined.js', 'combined.css'],
],
'tempDir' => __DIR__ . '/temp',
'colors' => true,
];