-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathremote.php
63 lines (51 loc) · 1.78 KB
/
remote.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
<?php return array(
// Remote server
//////////////////////////////////////////////////////////////////////
// Variables about the servers. Those can be guessed but in
// case of problem it's best to input those manually
'variables' => array(
'directory_separator' => '/',
'line_endings' => "\n",
),
// The root directory where your applications will be deployed
'root_directory' => '/var/www/',
'wp_content_director' => 'content', // relative to site root
'domain_name' => 'wcstl.elemenopea.com',
// DB connection details used for pull/push as well ad wp-config generation
'db' => array(
'host' => 'localhost',
'user' => 'root',
'password' => 'password',
'name' => 'wcstl',
),
// The name of the application to deploy
// This will create a folder of the same name in the root directory
// configured above, so be careful about the characters used
'application_name' => 'wcstl',
// The number of releases to keep at all times
'keep_releases' => 4,
// A list of folders/file to be shared between releases
// Use this to list folders that need to keep their state, like
// user uploaded data, file-based databases, etc.
'shared' => array(
'content/uploads',
),
'permissions' => array(
// The folders and files to set as web writable
// You can pass paths in brackets, so {path.public} will return
// the correct path to the public folder
'files' => array(
'content/uploads',
'content/plugins',
),
// Here you can configure what actions will be executed to set
// permissions on the folder above. The Closure can return
// a single command as a string or an array of commands
'callback' => function ($task, $file) {
return array(
sprintf('chown -R www-data:www-data %s', $file),
sprintf('chmod -R g+w %s', $file),
);
},
),
);