Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony try project in prod environment leads me to an error

I was trying to run my project for the first time in a production environment I did not go how I expected.

After following the instructions from here https://symfony.com/doc/current/deployment.html I got an error in my localhost/Symfony/web/app_dev.php page :

ClassNotFoundException: Attempted to load class "SensioGeneratorBundle" from namespace     "Sensio\Bundle\GeneratorBundle" in D:\logiciel\wamp\www\Symfony\app\AppKernel.php line 28. Do you need     to "use" it from another namespace?

Is it possible that composer made a mistake or something? I really don't know how to solve this

like image 719
Vincent Cueto Avatar asked Nov 19 '14 04:11

Vincent Cueto


1 Answers

I had the same problem and solved it by doing:

export SYMFONY_ENV=prod
like image 166
Pogus Avatar answered Sep 27 '22 17:09

Pogus