-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.php
63 lines (48 loc) · 1.33 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
namespace Deployer;
/**
* 1. Deployer recipes we are using for this website
*/
require_once 'vendor/studio24/deployer-recipes/recipe/default.php';
/**
* 2. Deployment configuration variables
*/
// Project name
set('application', 'Amplify');
// Git repo
set('repository', '[email protected]:studio24/amplify.git');
// Filesystem volume we're deploying to
set('disk_space_filesystem', '/data');
// Required for this project as the server doesn't support openssh v7.6
set('git_ssh_command', 'ssh');
// Shared directories that need to persist between deployments
set('shared_dirs', [
'.well-known',
]);
// Writable directories
set('writable_dirs', [
]);
/**
* 3. Hosts
*/
host('production')
->set('hostname', '63.34.69.8')
->set('deploy_path', '/data/var/www/vhosts/amplify/production')
->set('log_files', [
'/data/logs/amplify.access.log',
'/data/logs/amplify.error.log',
])
->set('url', 'https://amplify.studio24.net');
host('staging')
->set('hostname', '63.34.69.8')
->set('deploy_path', '/data/var/www/vhosts/amplify/staging')
->set('log_files', [
'/data/logs/amplify-staging.access.log',
'/data/logs/amplify-staging.error.log',
])
->set('url', 'https://amplify-staging.studio24.net');
/**
* 4. Deployment tasks
*
* Any custom deployment tasks to run
*/