Page MenuHomePhabricator

Allow use of the profiler on xtools-dev.wmflabs.org
Closed, DeclinedPublic1 Estimated Story Points

Description

Currently, the profiler toolbar and advanced debugging tools only run on local systems. Let's expand that to include xtools-dev.wmflabs.org.

Probably, the proper way to do this is to create a dotfile in the root of the machine which XTools checks for.

Event Timeline

Matthewrbowker moved this task from Working to General / other on the XTools board.

https://symfony.com/doc/current/configuration/environments.html#selecting-the-environment-for-console-commands - According to the symfony docs, we need to set two environment variables. SYMFONY_ENV needs to be set to "dev" and SYMFONY_DEBUG needs to be set to 1. This may be something that would be better handled by puppet (so it doesn't get overwritten), thus T170514: Set up XTools servers with Puppet applies. I don't know how to puppet, so putting this task up for grabs.

According to the symfony docs, we need to set two environment variables. SYMFONY_ENV needs to be set to "dev" and SYMFONY_DEBUG needs to be set to 1

There's no way to turn on the profiler and keep it set to prod? I think it'd be preferred if we could use this instance to test the prod environment before actually deploying to production. We have enough quota to create another dev instance, though. How does that sound?

Not sure about another dev instance, I don't know if that will be productive. Maybe explore https://symfony.com/doc/current/reference/configuration/web_profiler.html ?

Matthewrbowker moved this task from General / other to Complete on the XTools board.

I am going to close this task. The environment variables can be set manually when there needs to be debugging using the profiler.