feat(ansible/composer): Optimise l'installation de composer en production.

🐛 fix(web_profiler): Désactive le web profiler en production.

🔧 chore(bundles): Active le WebProfilerBundle en dev et test uniquement.
This commit is contained in:
Serreau Jovann
2025-11-22 22:03:56 +01:00
parent 66b8bbedb4
commit 9ee52c36a4
3 changed files with 2 additions and 9 deletions

View File

@@ -95,7 +95,7 @@
- "{{ path }}/public/storage"
- name: Exécuter 'composer install' dans le répertoire de l'application
ansible.builtin.command: composer install
ansible.builtin.command: composer install --no-dev --optimize-autoloader
become: false # Run as the connection user (e.g., 'bot')
args:
chdir: "{{ path }}"

View File

@@ -6,7 +6,7 @@ return [
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true],
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['all' => true],
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true],
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],

View File

@@ -5,13 +5,6 @@ when@dev:
framework:
profiler:
collect_serializer_data: true
when@prod:
web_profiler:
toolbar: true
intercept_redirects: false
framework:
profiler:
collect_serializer_data: true
when@test:
framework: