mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Save the runtime status information in the application object for using
it other places. globals() does not return consistent value across the application context. Thanks Neel Patel for reporting the issue.
This commit is contained in:
@@ -72,6 +72,9 @@ else:
|
||||
config.DEFAULT_SERVER_PORT)
|
||||
server_port = config.DEFAULT_SERVER_PORT
|
||||
|
||||
# Let the application save the status about the runtime for using it later.
|
||||
app.PGADMIN_RUNTIME = PGADMIN_RUNTIME
|
||||
|
||||
# Output a startup message if we're not under the runtime
|
||||
if not PGADMIN_RUNTIME:
|
||||
print("Starting %s. Please navigate to http://localhost:%d in your browser." %
|
||||
|
||||
Reference in New Issue
Block a user