forked from shukla141015/keys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.php
54 lines (34 loc) · 958 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
namespace Deployer;
require 'recipe/laravel.php';
set('application', 'Keys');
set('repository', '[email protected]:SjorsO/keys.git');
set('git_tty', true);
set('keep_releases', 3);
host('[email protected]')->set('deploy_path', '/var/www/keys');
task('build-npm-assets', 'npm i; npm run prod');
task('clear-opcache', 'sudo service apache2 restart');
task('generate-sitemap', 'php artisan keys:generate-sitemap');
after('deploy:failed', 'deploy:unlock');
task('deploy', [
'deploy:info',
'deploy:prepare',
'deploy:lock',
'deploy:release',
'deploy:update_code',
'deploy:shared',
'deploy:vendors',
'build-npm-assets',
'deploy:writable',
// 'artisan:storage:link',
'artisan:view:clear',
'artisan:config:cache',
'artisan:route:cache',
'artisan:migrate',
'deploy:symlink',
'clear-opcache',
'artisan:queue:restart',
'generate-sitemap',
'deploy:unlock',
'cleanup',
]);