public inbox for [email protected]
help / color / mirror / Atom feedFrom: Murtuza Zabuawala <[email protected]>
To: Joao De Almeida Pereira <[email protected]>
Cc: Rahul Soshte <[email protected]>
Cc: pgadmin-hackers <[email protected]>
Subject: Re: How to enable debug mode to See changes on the fly?
Date: Thu, 29 Mar 2018 09:42:43 +0530
Message-ID: <CAKKotZTH1wNKq=zewCeRYoEgkO4Vri_z+QzYCaMGN_R-wEprKA@mail.gmail.com> (raw)
In-Reply-To: <CAE+jjak9BGtJRv4sMmDNsdhRpUZXcntyvJAV1XXdKe06KRtiNQ@mail.gmail.com>
References: <CAKyzeV3eCvW3HfLe4CGVSF+Upu6CHu5t2Q_HQJu_xT4d4T9fZQ@mail.gmail.com>
<CAE+jjak9BGtJRv4sMmDNsdhRpUZXcntyvJAV1XXdKe06KRtiNQ@mail.gmail.com>
Hi,
AFAIR we intentionally disabled it. The reason for this is that due to how
the reload mechanism works there are some side-effects which was causing
executing certain code twice.
Check commit: git log a49a3103e298fcc437
If you want to enable reloading for development purposes then you can
simply change value of use_reloader option to true, Set use_reloader = True
in ../web/pgAdmin4.py +154
Restart pgAdmin4 and it should reload server whenever you save the changes
in python files.
--
Regards,
Murtuza Zabuawala
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
On Wed, Mar 28, 2018 at 11:41 PM, Joao De Almeida Pereira <
[email protected]> wrote:
> Hello Rahul,
> In fact when you change python code there isn't much you can do, you need
> to restart the server every time.
> For the Javascript code you can have a second console open and run `yarn
> bundle:watch` and it will regenerate the javascript code and you just need
> to refresh the webpage on the browser.
>
> Thanks
> Victoria & Joao
>
> On Wed, Mar 28, 2018 at 12:23 PM Rahul Soshte <[email protected]>
> wrote:
>
>> In my config_local.py I have made DEBUG_MODE = TRUE
>> Even then when I make changes to files in the codebase I am not able to
>> see the changes instantly, I gotta restart the server again and again.I
>> dont want to restart the server again and again to see my changes.
>> What do I do?
>>
>
view thread (3+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: How to enable debug mode to See changes on the fly?
In-Reply-To: <CAKKotZTH1wNKq=zewCeRYoEgkO4Vri_z+QzYCaMGN_R-wEprKA@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox