-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.php
30 lines (24 loc) · 801 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
<?php
namespace Deployer;
require 'recipe/symfony.php';
// Config
set('repository', '[email protected]:chr-hertel/oss-complexity-report.git');
set('composer_options', '--no-dev --verbose --prefer-dist --classmap-authoritative --no-progress --no-interaction --no-scripts');
set('console_options', '--no-interaction --env=prod');
set('shared_dirs', [
'var/log',
'repositories',
]);
// Hosts
host('christopher-hertel.de')
->set('remote_user', 'deployer')
->set('deploy_path', '/var/www/oss-complexity-report');
// Tasks
task('build', function () {
cd('{{release_path}}');
run('yarn install --frozen-lockfile');
run('yarn build');
run('{{bin/console}} dotenv:dump {{console_options}}');
});
after('deploy:cache:clear', 'build');
after('deploy:failed', 'deploy:unlock');