-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdeploy.php
More file actions
38 lines (32 loc) · 914 Bytes
/
deploy.php
File metadata and controls
38 lines (32 loc) · 914 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
<?php
/*
* This file has been generated automatically.
* Please change the configuration for correct use deploy.
*/
require 'recipe/yii.php';
// Set configurations
set('repository', 'https://github.com/Lastefond/coinreader-fe.git');
env('branch', 'Video-slides');
set('shared_files', [
'config/params-local.php',
]);
task('deploy:fix_assets', function () {
run('chmod 777 {{release_path}}/web/assets');
});
task('deploy:run_migrations', function () {
run('{{release_path}}/yii migrate up --interactive=0');
})->desc('Run migrations');
// Configure servers
localServer('production')
->env('deploy_path', '/var/www/html/coinreader-fe');
task('deploy', [
'deploy:prepare',
'deploy:release',
'deploy:update_code',
'deploy:shared',
'deploy:vendors',
'deploy:fix_assets',
'deploy:run_migrations',
'deploy:symlink',
'cleanup',
])->desc('Deploy your project');