Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploying Symfony in dev environment #68

Open
CaptainStiggz opened this issue Sep 23, 2016 · 1 comment
Open

Deploying Symfony in dev environment #68

CaptainStiggz opened this issue Sep 23, 2016 · 1 comment

Comments

@CaptainStiggz
Copy link

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

@wasbaiti
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants