-
-
Notifications
You must be signed in to change notification settings - Fork 66
/
deploy.php
42 lines (32 loc) · 810 Bytes
/
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
<?php
namespace Deployer;
require 'recipe/zend_framework.php';
// Project name
set('application', 'Yawik');
// Project repository
set('repository', '[email protected]:yawik/yawik.git');
// Shared files/dirs between deploys
add('shared_files', [
'public/.htaccess',
]);
add('shared_dirs', [
'var/log',
'var/cache',
'config/autoload',
'public/static'
]);
// Writable dirs by web server
add('writable_dirs', [
'var/cache',
'var/log',
'public/static'
]);
set('default_stage', 'staging');
host('staging.yawik.org')
->user('yawik')
->stage('staging')
->multiplexing(false)
->set('deploy_path', '/var/www/staging');
#after('deploy:symlink', 'cachetool:clear:opcache');
// [Optional] if deploy fails automatically unlock.
after('deploy:failed', 'deploy:unlock');