-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.php
More file actions
39 lines (29 loc) · 788 Bytes
/
deploy.php
File metadata and controls
39 lines (29 loc) · 788 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
38
39
<?php namespace Deployer;
require 'recipe/laravel.php';
// Project name
set('application', 'Clockwork Share');
// Project repository
set('repository', 'https://github.com/underground-works/clockwork-share.git');
set('writable_dirs', []);
set('default_stage', 'production');
set('allow_anonymous_stats', false);
set('user', function () {
return runLocally('git config --get user.name');
});
// Hosts
host('arizona')
->set('labels', [ 'stage' => 'production' ])
->set('user', 'its')
->set('deploy_path', '/Sites/its/clockwork.underground.works');
/**
* Main deploy task.
*/
desc('Deploys your project');
task('deploy', [
'deploy:prepare',
'deploy:vendors',
'artisan:storage:link',
'artisan:config:cache',
'artisan:route:cache',
'deploy:publish',
]);