symfony
symfony copied to clipboard
Deploying Symfony in dev environment
I have a staging server that I use to test my application. The issue is if I try setting :symfony_env, "dev"
I get the following error during the composer install
phase.
[RuntimeException]
An error occurred when executing the "'cache:clear --no-warmup'" command:
PHP Fatal error: Class 'Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle' not found in ../../AppKernel.php on line 40
This makes sense, but I don't see in the docs where to override the default composer install --no-dev --prefer-dist --no-interaction --quiet ...
Hi You can try : set :composer_install_flags, '--prefer-dist --no-interaction --optimize-autoloader --quiet' in your deploy.rb if you want to ovverride it for all your deployment env, or in staging.rb if you want to override juste staging environnement for example