-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpusher.config.php
68 lines (63 loc) · 1.9 KB
/
pusher.config.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
<?php
$Configuration = array (
'general' => array(
'gitexecutable' => 'git', // Path to git(.exe)
'wget' => 'wget',
'ncftpput' => 'ncftpput',
'backupdir' => __DIR__.'/backup/',
'deploydir' => __DIR__.'/deploy/',
),
'sites' => array(
'mysite' => array (
'deploymethod' => 'FTP', // FTP and SSH supported
'deploysource' => 'folder', // folder and git supported
'backup' => false, // Always backup?
// deploysource == git
'giturl' => 'git://myserver.com/myproject.git',
'gitbranch' => '',
//deploysource == folder
'sourcefolder' => __DIR__.'/../awesomeProject/',
// Destination details
'FTP' => array(
'hostname' => 'myserver.com',
'username' => 'r00t',
'password' => 'secretpassword',
'port' => 21,
),
'SSH' => array(
'hostname' => '',
'username' => '',
'password' => '', /* not used, use public key authentication */
'port' => 22,
),
'backuppaths' => array(
'/domains/myserver.com/public_html/index.php' => './',
'/domains/myserver.com/public_html/site/' => './',
'/domains/myserver.com/cronjobs/' => './',
),
'excludebackuppaths' => array(
'/domains/myserver.com/public_html/site/uploadedimg/'
),
'excludecopypaths' => array( // Files simply will be removen from deploypath before uploading
'/www/index.php',
'/www/.htaccess',
'/wordpress/wp-config.php',
'/wordpress/.htaccess',
),
'replacefiles' => array(
//relative from pusher relative from deploypath
'/custom/myawesomesite/.htaccess' => '/www/.htaccess',
),
'replacelines' => array(
'/cronjobs/myCron.php' => array (
'11' => "define('WWWDIR', __DIR__.\"/../../../\");",
),
),
'copypaths' => array(
'/www/' => '/domains/myserver.com/public_html/',
'/wordpress/' => '/domains/myserver.com/public_html/wordpress/',
'/cronjobs/' => '/domains/myserver.com/cronjobs/',
)
)
)
);