public inbox for [email protected]  
help / color / mirror / Atom feed
How to enable debug mode to See changes on the fly?
3+ messages / 3 participants
[nested] [flat]

* How to enable debug mode to See changes on the fly?
@ 2018-03-28 16:23 Rahul Soshte <[email protected]>
  2018-03-28 18:11 ` Re: How to enable debug mode to See changes on the fly? Joao De Almeida Pereira <[email protected]>
  0 siblings, 1 reply; 3+ messages in thread

From: Rahul Soshte @ 2018-03-28 16:23 UTC (permalink / raw)
  To: pgadmin-hackers

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?


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: How to enable debug mode to See changes on the fly?
  2018-03-28 16:23 How to enable debug mode to See changes on the fly? Rahul Soshte <[email protected]>
@ 2018-03-28 18:11 ` Joao De Almeida Pereira <[email protected]>
  2018-03-29 04:12   ` Re: How to enable debug mode to See changes on the fly? Murtuza Zabuawala <[email protected]>
  0 siblings, 1 reply; 3+ messages in thread

From: Joao De Almeida Pereira @ 2018-03-28 18:11 UTC (permalink / raw)
  To: Rahul Soshte <[email protected]>; +Cc: pgadmin-hackers

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?
>


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: How to enable debug mode to See changes on the fly?
  2018-03-28 16:23 How to enable debug mode to See changes on the fly? Rahul Soshte <[email protected]>
  2018-03-28 18:11 ` Re: How to enable debug mode to See changes on the fly? Joao De Almeida Pereira <[email protected]>
@ 2018-03-29 04:12   ` Murtuza Zabuawala <[email protected]>
  0 siblings, 0 replies; 3+ messages in thread

From: Murtuza Zabuawala @ 2018-03-29 04:12 UTC (permalink / raw)
  To: Joao De Almeida Pereira <[email protected]>; +Cc: Rahul Soshte <[email protected]>; pgadmin-hackers

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?
>>
>


^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2018-03-29 04:12 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-03-28 16:23 How to enable debug mode to See changes on the fly? Rahul Soshte <[email protected]>
2018-03-28 18:11 ` Joao De Almeida Pereira <[email protected]>
2018-03-29 04:12   ` Murtuza Zabuawala <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox