Re: [pgAdmin4][Patch]: Stop Flask from initialising service twice inDebug mode

Поиск
Список
Период
Сортировка
От Surinder Kumar
Тема Re: [pgAdmin4][Patch]: Stop Flask from initialising service twice inDebug mode
Дата
Msg-id CAM5-9D95RiheEDW_LnzGryiQpoS0Xjf3Qbs8QYkBn-bGfa2W_Q@mail.gmail.com
обсуждение исходный текст
Ответ на [pgAdmin4][Patch]: Stop Flask from initialising service twice inDebug mode  (Surinder Kumar <surinder.kumar@enterprisedb.com>)
Ответы Re: [pgAdmin4][Patch]: Stop Flask from initialising service twice inDebug mode  (Dave Page <dpage@pgadmin.org>)
Список pgadmin-hackers
Hi

In this patch, i have added reference to the implementation.
Please find updated patch and review.

Thanks,
Surinder

On Fri, Jul 21, 2017 at 12:32 PM, Surinder Kumar <surinder.kumar@enterprisedb.com> wrote:
Hi

When pgAdmin4 runs in DEBUG mode, Flask initialise service twice, while in non-DEBUG mode, once. It is pain while development because `yarn run bundle` also runs twice.

It is because the parameter `use_reloader` = True in Debug Mode.

If `os.environ` variable `WERKZEUG_RUN_MAIN` is set to None, i.e. app is starting for the first time and then its value is changed to True.

Please find attached patch.

Thanks
Surinder




Вложения

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Surinder Kumar
Дата:
Сообщение: [pgAdmin4][Patch]: Stop Flask from initialising service twice inDebug mode
Следующее
От: Surinder Kumar
Дата:
Сообщение: [pgAdmin4][Patch]: Using editorconfig to maintain consistent codingstyles between different IDE's