Faery
Faery

Reputation: 4650

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 only in the URL and it worked.

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

My URLs 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!

Upvotes: 0

Views: 595

Answers (3)

Ritesh Aryal
Ritesh Aryal

Reputation: 843

Do one more quick thing please:

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

Fore more information visit

Upvotes: 0

Carlos Granados
Carlos Granados

Reputation: 11351

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

Upvotes: 1

Vitalii Zurian
Vitalii Zurian

Reputation: 17976

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


UPDATE

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

Upvotes: 0

Related Questions