symfony icon indicating copy to clipboard operation
symfony copied to clipboard

Deploying Symfony in dev environment

Open zstiggz opened this issue 8 years ago • 1 comments

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 ...

zstiggz avatar Sep 23 '16 01:09 zstiggz

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

wasbaiti avatar Oct 25 '16 10:10 wasbaiti