-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.php
34 lines (29 loc) · 874 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
<?php
require('vendor/deployer/deployer/recipe/symfony.php');
server('production', 'fixfin.ru')
->user('xoptov')
->identityFile()
->stage('prod')
->env('deploy_path', '/var/www/prod');
server('staging', 'fixfin.ru')
->user('xoptov')
->identityFile()
->stage('stage')
->env('deploy_path', '/var/www/stage');
set('repository', '[email protected]:xoptov/rublic.git');
set('shared_dirs', ['app/logs', 'web/uploads', 'web/media']);
set('writable_dirs', ['app/logs', 'app/cache', 'web/uploads', 'web/media']);
set('assets', ['web/bundles']);
task('deploy', [
'deploy:prepare',
'deploy:release',
'deploy:update_code',
'deploy:create_cache_dir',
'deploy:shared',
'deploy:writable',
'deploy:assets',
'deploy:vendors',
'deploy:cache:warmup',
'deploy:symlink',
'cleanup',
])->desc('Deploy your project');