Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f1OwA-0007rz-UW for pgadmin-hackers@arkaria.postgresql.org; Thu, 29 Mar 2018 04:13:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f1Ow8-0004lL-Mp for pgadmin-hackers@arkaria.postgresql.org; Thu, 29 Mar 2018 04:13:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f1Ow8-0004lB-Ck for pgadmin-hackers@lists.postgresql.org; Thu, 29 Mar 2018 04:13:16 +0000 Received: from mail-oi0-x231.google.com ([2607:f8b0:4003:c06::231]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f1Ovz-0000jg-Mo for pgadmin-hackers@postgresql.org; Thu, 29 Mar 2018 04:13:15 +0000 Received: by mail-oi0-x231.google.com with SMTP id 71-v6so4040120oie.12 for ; Wed, 28 Mar 2018 21:13:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Rntq8AVz8ypvGsy4dUheQJ0JLQ64GvOumW2g9a6x2Ow=; b=WJLsOYII46xC2uvW7kYMjWYBzHJ8AiCvIgCmKEdqjBny44f2Hc4q8TTm5tjzBmPT47 vML9vP9Xf38BCRfx42cdJh2h37uq298MOXJNsvzhPTXcJnMfU+KAGJr38r84t7LAdqlo 64S3G9kr+exEuPticcSm3Yu9RMH/lzdFkicFPztLVIrmxAEmP5aJFefQ2ikkm9DES2Y2 akEux66cP1WQ7K982PhlXvvIHsP26JCP64gh/b9TKlmEqnhjO7djS28iXx9uViT3wfmQ HFLCG9eda2RJ4I9ho5bgEaDZapyUUxqiVNwr9yg8KAsl3iYUbk59Ydqj6m4LwjmGsqs9 5Wiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Rntq8AVz8ypvGsy4dUheQJ0JLQ64GvOumW2g9a6x2Ow=; b=AzuifMOb8BvQzGd3t2Su9pTW1WeKV4913YNsFGoaGSfmGIHnAT/l1sJHHqJ0wdsKOw gCbJj9mhVg0u5M+y9cS17P3gE/Obej+roq73MxMej8GwnBvOpms7vD80RFavroUhCLdC bwl9zdhSDk9zp4oJcwv8pB1YDIeTqfpb5EY8l6YlG3pshcVRiL0DS3g2EYk8sIBWUd13 XXRiMgYcnngEciZfMJYxi5JVx8Mwoo9WsZo8Dy92mKzDJF8IF4Nb4KPYuJ8i7oKoTWzv W8CokbQ3iXprayVB8I2iOQ8eUfkoHqcn/yllvApt9nS/DEm1sO/5On1gZC/vKNQR86rz Gf3A== X-Gm-Message-State: AElRT7G2eFBiN7hw5Ut5hDNiG7/IYjy4lTZrF4l46quo2Q/ttLdR5udX 24LxviieB8Ew4qRtVhl6Y3yfTQJ0wlbbKTUq77Vvxw== X-Google-Smtp-Source: AIpwx48Qny5hex4FsE+tE3G0a8H9a6zaCXiczJdTV/XY9DCVZUbscNnNaSmsRBloV1gsFF6YHnVmC88OqF+gEKyuewA= X-Received: by 10.202.206.67 with SMTP id e64mr3618545oig.342.1522296784054; Wed, 28 Mar 2018 21:13:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.138.6.138 with HTTP; Wed, 28 Mar 2018 21:12:43 -0700 (PDT) In-Reply-To: References: From: Murtuza Zabuawala Date: Thu, 29 Mar 2018 09:42:43 +0530 Message-ID: Subject: Re: How to enable debug mode to See changes on the fly? To: Joao De Almeida Pereira Cc: Rahul Soshte , pgadmin-hackers Content-Type: multipart/alternative; boundary="001a113d23de0e8b83056885575b" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --001a113d23de0e8b83056885575b Content-Type: text/plain; charset="UTF-8" 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 < jdealmeidapereira@pivotal.io> 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 > 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? >> > --001a113d23de0e8b83056885575b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

AFAIR we intentionally disabled it. The reason for = this is that due to how the reload mechanism works there are some side-effe= cts which was causing executing certain code twice.
Check commit:=C2=A0g= it log a49a3103e298fcc437

<= span style=3D"background-color:rgb(255,255,255);color:rgb(68,68,68);font-fa= mily:verdana,sans-serif">If you want to enable reloading for development pu= rposes then you can simply change value of=C2=A0=C2=A0use_reloader option to= true, Set=C2=A0use_reloader =3D True in ../web/pgAdmin4.p= y +154

Restart=C2=A0pgAdmin4 and it should reload server whenever you save the chan= ges in python files.


=
--
Regards,
Murtuza Zabuawala
EnterpriseDB:=C2=A0http://www.e= nterprisedb.com
The Enterprise PostgreSQL Company


On Wed, Mar 28, 2018 at 11:41 PM, Joao De Al= meida Pereira <jdealmeidapereira@pivotal.io> wrot= e:
Hello Rahul,
In f= act when you change python code there isn't much you can do, you need t= o restart the server every time.
For the Javascript code you can = have a second console open and run `yarn bundle:watch` and it will regenera= te the javascript code and you just need to refresh the webpage on the brow= ser.

Thanks
Victoria & Joao

On Wed, Mar 28, 2018 at = 12:23 PM Rahul Soshte <rahulsoshte360@gmail.com> wrote:
In my config_local.py I have m= ade DEBUG_MODE =3D TRUE
Even then when I make changes to files in= the codebase I am not able to see the changes instantly, I gotta restart t= he server again and again.I dont want to restart the server again and again= to see my changes.
What do I do?

--001a113d23de0e8b83056885575b--