mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Added an environment for the demo
In this environment the exception are logged to stderr, so we can access it via heroku.
This commit is contained in:
parent
01a83d388b
commit
368645f0cb
3 changed files with 56 additions and 1 deletions
2
.env
2
.env
|
@ -14,7 +14,7 @@
|
||||||
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration
|
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration
|
||||||
|
|
||||||
###> symfony/framework-bundle ###
|
###> symfony/framework-bundle ###
|
||||||
APP_ENV=dev
|
APP_ENV=prod
|
||||||
APP_SECRET=7915fd8481d1a52cf42010ebe2caa974
|
APP_SECRET=7915fd8481d1a52cf42010ebe2caa974
|
||||||
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
|
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
|
||||||
#TRUSTED_HOSTS='^localhost|example\.com$'
|
#TRUSTED_HOSTS='^localhost|example\.com$'
|
||||||
|
|
32
config/packages/demo/doctrine.yaml
Normal file
32
config/packages/demo/doctrine.yaml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
doctrine:
|
||||||
|
orm:
|
||||||
|
auto_generate_proxy_classes: false
|
||||||
|
metadata_cache_driver:
|
||||||
|
type: service
|
||||||
|
id: doctrine.system_cache_provider
|
||||||
|
query_cache_driver:
|
||||||
|
type: service
|
||||||
|
id: doctrine.system_cache_provider
|
||||||
|
result_cache_driver:
|
||||||
|
type: service
|
||||||
|
id: doctrine.result_cache_provider
|
||||||
|
|
||||||
|
services:
|
||||||
|
doctrine.result_cache_provider:
|
||||||
|
class: Symfony\Component\Cache\DoctrineProvider
|
||||||
|
public: false
|
||||||
|
arguments:
|
||||||
|
- '@doctrine.result_cache_pool'
|
||||||
|
doctrine.system_cache_provider:
|
||||||
|
class: Symfony\Component\Cache\DoctrineProvider
|
||||||
|
public: false
|
||||||
|
arguments:
|
||||||
|
- '@doctrine.system_cache_pool'
|
||||||
|
|
||||||
|
framework:
|
||||||
|
cache:
|
||||||
|
pools:
|
||||||
|
doctrine.result_cache_pool:
|
||||||
|
adapter: cache.app
|
||||||
|
doctrine.system_cache_pool:
|
||||||
|
adapter: cache.system
|
23
config/packages/demo/monolog.yaml
Normal file
23
config/packages/demo/monolog.yaml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
monolog:
|
||||||
|
handlers:
|
||||||
|
main:
|
||||||
|
type: fingers_crossed
|
||||||
|
action_level: error
|
||||||
|
handler: nested
|
||||||
|
excluded_http_codes: [404, 405]
|
||||||
|
nested:
|
||||||
|
type: stream
|
||||||
|
path: "php://stderr"
|
||||||
|
level: debug
|
||||||
|
console:
|
||||||
|
type: console
|
||||||
|
process_psr_3_messages: false
|
||||||
|
channels: ["!event", "!doctrine"]
|
||||||
|
deprecation:
|
||||||
|
type: stream
|
||||||
|
path: "%kernel.logs_dir%/%kernel.environment%.deprecations.log"
|
||||||
|
deprecation_filter:
|
||||||
|
type: filter
|
||||||
|
handler: deprecation
|
||||||
|
max_level: info
|
||||||
|
channels: ["php"]
|
Loading…
Add table
Add a link
Reference in a new issue