forked from envault/envault
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.php
More file actions
35 lines (26 loc) · 771 Bytes
/
deploy.php
File metadata and controls
35 lines (26 loc) · 771 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
<?php
namespace Deployer;
require 'recipe/laravel.php';
require __DIR__ . '/deployer/recipe.php';
// Config
set('application', 'envault');
set('repository', 'git@github.com:supplycart/envault.git');
add('shared_files', []);
add('shared_dirs', []);
add('writable_dirs', []);
// Hosts
if (file_exists(__DIR__ . '/deployer/hosts.php')) {
require __DIR__ . '/deployer/hosts.php';
} else {
host('sc-aws-envault')
->set('remote_user', 'ubuntu')
->set('deploy_path', '/home/ubuntu/envault')
->set('branch', function () {
return input()->getOption('branch') ?: 'main';
})
->set('php_version', '8.0')
->set('domain', 'envault.supplycart.my');
}
// Tasks
// Hooks
after('deploy:failed', 'deploy:unlock');