Вопрос

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 ?

Это было полезно?

Решение

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top