Skip to content

Commit

Permalink
$ mv config/packages{,/dev}/ignition.yaml # to fix symfony/recipes-co…
Browse files Browse the repository at this point in the history
…ntrib#1689 and partial revert af67ff2 for `config/bundles.php`

* disable doctrine query cache to fix https://stackoverflow.com/questions/30871721/doctrine2-dynamic-table-name-for-entity#comment139425159_49796901 @ `config/packages/doctrine.yaml`

* rename var `APP_BASE_URL_ASSETS` to `APP_BASE_URL_BE`, also affect its only usage in `config/packages/framework.yaml`
* set the default environment to production
@ .env
@ be
  • Loading branch information
n0099 committed Oct 10, 2024
1 parent a927663 commit 18f1b9c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
6 changes: 3 additions & 3 deletions be/.env
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration

APP_BASE_URL_ASSETS=
APP_BASE_URL_BE=
APP_BASE_URL_FE=

###> symfony/framework-bundle ###
APP_ENV=dev
APP_ENV=prod
APP_SECRET=
###< symfony/framework-bundle ###

Expand All @@ -29,5 +29,5 @@ APP_SECRET=
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
# DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8.0.32&charset=utf8mb4"
# DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8"
DATABASE_URL="postgresql://username:password@127.0.0.1:5432/database?serverVersion=16&charset=utf8"
###< doctrine/doctrine-bundle ###
2 changes: 1 addition & 1 deletion be/config/bundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true],
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
Spatie\SymfonyIgnitionBundle\IgnitionBundle::class => ['dev' => true, 'test' => true],
Spatie\SymfonyIgnitionBundle\IgnitionBundle::class => ['dev' => true],
];
File renamed without changes.
3 changes: 0 additions & 3 deletions be/config/packages/doctrine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ when@prod:
orm:
auto_generate_proxy_classes: false
proxy_dir: '%kernel.build_dir%/doctrine/orm/Proxies'
query_cache_driver:
type: pool
pool: doctrine.system_cache_pool
result_cache_driver:
type: pool
pool: doctrine.result_cache_pool
Expand Down
2 changes: 1 addition & 1 deletion be/config/packages/framework.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ framework:

assets:
base_urls:
- '%env(APP_BASE_URL_ASSETS)%'
- '%env(APP_BASE_URL_BE)%'

when@test:
framework:
Expand Down

0 comments on commit 18f1b9c

Please sign in to comment.