0

I'm trying to clean my prod cache on symfony2 (php app/console cache:clear --env-prod), and I get the following error :

[InvalidArgumentException] The file "/var/www/vhosts/ns21206.ovh.net/citydom/app/config/config_.yml" does not exist.

In my file app.php I created the project with the following line :

$kernel = new AppKernel('prod', true);

Which I think is pretty standard.

I think that symfony is trying to create the project with thte env "", but I don't know why.

What did I do wrong ?

Joe Wicentowski
  • 5,159
  • 16
  • 26
Nicorr
  • 724
  • 6
  • 22

1 Answers1

9

It's not app.php that is wrong. It's your cache:clear command. Use --env=prod instead of --env-prod.

Molecular Man
  • 22,277
  • 3
  • 72
  • 89