public inbox for [email protected]
help / color / mirror / Atom feedFrom: Prasad Somwanshi <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: Re: Running pgAdmin4
Date: Sat, 24 Oct 2015 01:17:37 +0200
Message-ID: <trinity-f9c6cc98-ec0a-48fe-913b-1e4658f7e24f-1445642256868@3capp-mailcom-lxa12> (raw)
In-Reply-To: <trinity-e50f38f1-ec42-420e-82b2-c4780610671c-1443770001202@3capp-mailcom-lxa12>
References: <trinity-61a0cccc-2632-42fd-8324-890dd117b3a7-1443646140455@3capp-mailcom-lxa10>
<CAG7mmoyrUju-GOXKec=CcS7bj6G8FY+0nFXvz74EAWNeg1wCrQ@mail.gmail.com>
<trinity-94984e89-b164-4205-966e-a224ef50fa92-1443690545332@3capp-mailcom-lxa14>
<trinity-dd1d9fd2-0892-424f-91ea-5645402eb52a-1443767100235@3capp-mailcom-lxa05>
<[email protected]>
<trinity-e50f38f1-ec42-420e-82b2-c4780610671c-1443770001202@3capp-mailcom-lxa12>
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgadmin-hackers>
--
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers
Attachments:
[text/x-patch] threadingissue.patch (817B, 2-threadingissue.patch)
download | inline diff:
diff --git a/web/pgAdmin4.py b/web/pgAdmin4.py
index 40ca3ec..556aa5c 100644
--- a/web/pgAdmin4.py
+++ b/web/pgAdmin4.py
@@ -53,9 +53,6 @@ if not os.path.isfile(config.SQLITE_PATH):
# Create the app!
app = create_app()
-if config.DEBUG:
- app.debug = True
-
# Start the web server. The port number should have already been set by the
# runtime if we're running in desktop mode, otherwise we'll just use the
# Flask default.
@@ -70,6 +67,10 @@ else:
server_port = config.DEFAULT_SERVER_PORT
try:
- app.run(port=server_port)
+# Make sure reloader is disabled in debug mode
+ if config.DEBUG:
+ app.run(port=server_port,debug=True,use_reloader=False)
+ else:
+ app.run(port=server_port)
except IOError:
app.logger.error("Error starting the app server: %s", sys.exc_info())
view thread (9+ messages) latest in thread
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]
Subject: Re: Running pgAdmin4
In-Reply-To: <trinity-f9c6cc98-ec0a-48fe-913b-1e4658f7e24f-1445642256868@3capp-mailcom-lxa12>
* 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