forked from stellenmarkt/stellenmarkt.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.php
45 lines (34 loc) · 1.01 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
<?php
namespace Deployer;
require 'recipe/zend_framework.php';
// Project name
set('application', 'stellenmarkt.com');
// Project repository
set('repository', '[email protected]:cbleek/Stellenmarkt.com.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.stellenmarkt.com')
->user('yawik')
->stage('prod')
->multiplexing(false)
->set('deploy_path', '/var/www/production')
->set('writableusesudo', true);
// [Optional] if deploy fails automatically unlock.
after('deploy:failed', 'deploy:unlock');