forked from Lastefond/coinreader-fe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.php
More file actions
37 lines (32 loc) · 945 Bytes
/
Copy pathdeploy.php
File metadata and controls
37 lines (32 loc) · 945 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
/*
* 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');
task('deploy:fix_assets', function () {
run('chmod 777 {{release_path}}/web/assets');
});
task('deploy:fix_runtime', function () {
run('chmod -R 777 {{release_path}}/runtime');
});
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:fix_runtime',
'deploy:run_migrations',
'deploy:symlink',
'cleanup',
])->desc('Deploy your project');