mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-24 07:16:52 -06:00
Tell the user where the app server is running.
This commit is contained in:
parent
d87a6a15ac
commit
0f12defd20
@ -42,8 +42,8 @@ if config.SERVER_MODE is True:
|
|||||||
# Check if the database exists. If it does not, create it.
|
# Check if the database exists. If it does not, create it.
|
||||||
if not os.path.isfile(config.SQLITE_PATH):
|
if not os.path.isfile(config.SQLITE_PATH):
|
||||||
setupfile = os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
setupfile = os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
||||||
'setup.py')
|
'setup.py')
|
||||||
exec(open(setupfile).read())
|
exec (open(setupfile).read())
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# Server starup
|
# Server starup
|
||||||
@ -70,6 +70,10 @@ else:
|
|||||||
config.DEFAULT_SERVER_PORT)
|
config.DEFAULT_SERVER_PORT)
|
||||||
server_port = config.DEFAULT_SERVER_PORT
|
server_port = config.DEFAULT_SERVER_PORT
|
||||||
|
|
||||||
|
print("Starting %s. Please navigate to http://localhost:%d in your browser." %
|
||||||
|
(config.APP_NAME, server_port))
|
||||||
|
sys.stdout.flush()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
app.run(
|
app.run(
|
||||||
host=config.DEFAULT_SERVER,
|
host=config.DEFAULT_SERVER,
|
||||||
|
Loading…
Reference in New Issue
Block a user