-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeploy.php
More file actions
37 lines (26 loc) · 787 Bytes
/
deploy.php
File metadata and controls
37 lines (26 loc) · 787 Bytes
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
<?php
namespace Deployer;
require 'recipe/laravel.php';
// Config
set('repository', 'git@github.com:codante-io/codante-io-api.git');
add('shared_files', []);
add('shared_dirs', []);
add('writable_dirs', []);
set('keep_releases', 3);
// Hosts
// host('159.89.44.90')
// ->set('remote_user', 'robertotcestari')
// ->set('deploy_path', '/var/www/codante-io-api');
host('216.238.103.47')
->set('remote_user', 'robertotcestari')
->set('deploy_path', '/var/www/codante-io-api');
task('test', function () {
runLocally('php artisan test');
});
task('deploy:reload-process', function () {
run('sudo supervisorctl restart all');
});
// Hooks
// before("deploy", "test");
after('deploy:cleanup', 'deploy:reload-process');
after('deploy:failed', 'deploy:unlock');