symfony2 - how to switch from “dev” to “prod”?

后端 未结 6 2246
再見小時候
再見小時候 2020-12-04 10:53

I downloaded symfony2 and I am able to run it starting from app_dev.php.

But when I start from app.php, then I get an error page 404.

app.php though is of co

6条回答
  •  星月不相逢
    2020-12-04 11:22

    Your problem is related to the cache of Symfony2. I had the same problems. Try this:

    • sudo php app/console cache:clear --env=prod --no-debug
    • sudo chmod 777 -R ../sf2/ (sf2) is the main directory of my proyect

    You're done.

提交回复
热议问题