Symfony2: access same route in production as development

前端 未结 1 1496
梦毁少年i
梦毁少年i 2021-01-05 03:37

I\'m developing a little application using Symfony2. I can access all routes with no problems in my dev environment:

http://symfony/app_dev.php/cp (\"symfony\" is in

相关标签:
1条回答
  • 2021-01-05 04:02

    As Crozin already mentioned in his comment, you have to rebuild cache to be able to see your changes. You need to rebuild production cache every time you change something in config, routing or templates. The safest way to do so is using php app/console cache:clear --env=prod --no-debug (as CLI runs in dev mode with debugging enabled by default).

    0 讨论(0)
提交回复
热议问题