質問

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