Symfony2 - dev environment

I was running my application in the dev environment and then I wanted to view it in the prod environment and just replaced app_dev.php with app.php <strong>only in the URL</strong> and it worked.

But now I can't go back to the dev enviroment :(

My <strong>URLs</strong> are with app_dev.php, but the debug toolbar is missing and the errors I get don't have much information and it's relly difficult to debug them, so I think that I'm still in the prod environment.

How can I get back my toolbar and the nice, descriptive erorrs? I really miss them!

Answer1:

The problem was that some css interfered with the style of the toolbar. Solved after some investigation.

Answer2:

Just restore the file according to your version. Pick contents from Symfony2 repository:

https://github.com/symfony/symfony-standard/blob/master/web/app_dev.php

<hr>

<strong>UPDATE</strong>

Have you tried to access the application via app_dev.php again? :)

Answer3:

Do one more quick thing please:

    <li>Clear your cache first (on the command line: ./app/console cache:clear )</li> <li>And try to access your your site mysite.com/app_dev.php</li> </ul>

    Fore more information visit

    人吐槽 人点赞

Recommend

Comment

用户名: 密码:
验证码: 匿名发表

你可以使用这些语言

查看评论:Symfony2 - dev environment