1 | <?php |
||||||
2 | |||||||
3 | namespace Deployer; |
||||||
4 | |||||||
5 | require 'recipe/symfony4.php'; |
||||||
6 | |||||||
7 | set('application', 'owncourses'); |
||||||
8 | set('default_stage', 'demo'); |
||||||
9 | |||||||
10 | set('env', static function () { |
||||||
11 | return [ |
||||||
12 | 'APP_ENV' => has('symfony_env') ? get('symfony_env') : 'prod', |
||||||
13 | ]; |
||||||
14 | }); |
||||||
15 | |||||||
16 | set('repository', '[email protected]:owncourses/courses-server.git'); |
||||||
17 | set('git_tty', true); |
||||||
18 | set('shared_files', [ |
||||||
19 | '.env.local', |
||||||
20 | '.env.local.php', |
||||||
21 | 'config/jwt/private.pem', |
||||||
22 | 'config/jwt/public.pem', |
||||||
23 | ]); // reset sharing .env |
||||||
24 | |||||||
25 | inventory('hosts.yml'); |
||||||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||||||
26 | |||||||
27 | task('deploy:assets:install', static function () { |
||||||
0 ignored issues
–
show
The function
task was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
28 | run('{{bin/console}} ckeditor:install'); |
||||||
29 | run('{{bin/console}} assets:install {{release_path}}/public'); |
||||||
30 | })->desc('Install bundle assets'); |
||||||
31 | after('deploy:symlink', 'deploy:assets:install'); |
||||||
0 ignored issues
–
show
The function
after was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
32 | |||||||
33 | task('deploy:composer:dump-env', static function () { |
||||||
34 | run('cd {{release_path}} && {{bin/composer}} symfony:dump-env prod'); |
||||||
35 | })->desc('Install bundle assets'); |
||||||
36 | after('deploy:symlink', 'deploy:composer:dump-env'); |
||||||
37 | |||||||
38 | after('deploy:failed', 'deploy:unlock'); |
||||||
39 | before('deploy:symlink', 'database:migrate'); |
||||||
40 |