-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.php
52 lines (40 loc) · 1.16 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
<?php
namespace Deployer;
require 'recipe/zend_framework.php';
// Project name
set('application', 'karriere24.de');
// Project repository
set('repository', '[email protected]:HPL/Karriere24.git');
// Shared files/dirs between deploys
add('shared_files', [
'test/sandbox/public/.htaccess',
'test/sandbox/public/robots.txt',
]);
add('shared_dirs', [
'test/sandbox/var/log',
'test/sandbox/var/cache',
'test/sandbox/config/autoload',
'test/sandbox/public/static', // used by eg. organization logos
]);
// Writable dirs by web server
add('writable_dirs', [
'test/sandbox/var/cache',
'test/sandbox/var/log',
'test/sandbox/public/static',
]);
set('default_stage', 'prod');
// Hosts
host('upcoming.karriere24.de')
->user('yawik')
->stage('prod')
->multiplexing(false)
->set('deploy_path', '/var/www/production')
->set('writableusesudo', true);
host('staging.karriere24.com')
->user('yawik')
->stage('staging')
->multiplexing(false)
->set('deploy_path', '/var/www/production')
->set('writableusesudo', true);
// [Optional] if deploy fails automatically unlock.
after('deploy:failed', 'deploy:unlock');