Skip to content

Commit 817a6b3

Browse files
committed
Remove dump-env
1 parent 7fed20a commit 817a6b3

2 files changed

Lines changed: 0 additions & 22 deletions

File tree

docs/recipe/symfony.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
* Require
1212
* [`recipe/common.php`](/docs/recipe/common.md)
1313
* Config
14-
* [`symfony_env`](#symfony_env)
1514
* [`symfony_version`](#symfony_version)
1615
* [`shared_dirs`](#shared_dirs)
1716
* [`shared_files`](#shared_files)
@@ -20,17 +19,11 @@
2019
* [`console_options`](#console_options)
2120
* Tasks
2221
* [`database:migrate`](#databasemigrate) — Migrate database
23-
* [`deploy:dump-env`](#deploydump-env) — Compile .env files
2422
* [`deploy:cache:clear`](#deploycacheclear) — Clear cache
2523
* [`deploy:cache:warmup`](#deploycachewarmup) — Warm up cache
2624
* [`deploy`](#deploy) — Deploy project
2725

2826
## Config
29-
### symfony_env
30-
[Source](https://github.com/deployphp/deployer/search?q=%22symfony_env%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Asymfony.php)
31-
32-
This env config will be used for `bin/console dump-env` command.
33-
3427
### symfony_version
3528
[Source](https://github.com/deployphp/deployer/search?q=%22symfony_version%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Asymfony.php)
3629

@@ -74,11 +67,6 @@ This env config will be used for `bin/console dump-env` command.
7467

7568

7669

77-
### deploy:dump-env
78-
[Source](https://github.com/deployphp/deployer/search?q=%22deploy%3Adump-env%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Asymfony.php)
79-
80-
81-
8270
### deploy:cache:clear
8371
[Source](https://github.com/deployphp/deployer/search?q=%22deploy%3Acache%3Aclear%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Asymfony.php)
8472

@@ -97,7 +85,6 @@ This env config will be used for `bin/console dump-env` command.
9785
This task is group task which contains next tasks:
9886
* [`deploy:prepare`](/docs/recipe/common.md#deployprepare)
9987
* [`deploy:vendors`](/docs/recipe/deploy/vendors.md#deployvendors)
100-
* [`deploy:dump-env`](/docs/recipe/symfony.md#deploydump-env)
10188
* [`deploy:cache:clear`](/docs/recipe/symfony.md#deploycacheclear)
10289
* [`deploy:cache:warmup`](/docs/recipe/symfony.md#deploycachewarmup)
10390
* [`deploy:publish`](/docs/recipe/common.md#deploypublish)

recipe/symfony.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55

66
add('recipes', ['symfony']);
77

8-
// This env config will be used for `bin/console dump-env` command.
9-
set('symfony_env', 'prod');
10-
118
set('symfony_version', function () {
129
$result = run('{{bin/console}} --version');
1310
preg_match_all('/(\d+\.?)+/', $result, $matches);
@@ -45,11 +42,6 @@
4542
run("cd {{release_or_current_path}} && {{bin/console}} doctrine:migrations:migrate $options {{console_options}}");
4643
});
4744

48-
desc('Compile .env files');
49-
task('deploy:dump-env', function () {
50-
run('cd {{release_or_current_path}} && {{bin/composer}} dump-env {{symfony_env}}');
51-
});
52-
5345
desc('Clear cache');
5446
task('deploy:cache:clear', function () {
5547
run('{{bin/console}} cache:clear {{console_options}} --no-warmup');
@@ -64,7 +56,6 @@
6456
task('deploy', [
6557
'deploy:prepare',
6658
'deploy:vendors',
67-
'deploy:dump-env',
6859
'deploy:cache:clear',
6960
'deploy:cache:warmup',
7061
'deploy:publish',

0 commit comments

Comments
 (0)