Display message on heat-api and heat-engine startup
When a Heat server is started, the user will now see a message that says so and shows the port number the server uses.
This commit is contained in:
parent
5d8d645f4e
commit
53859a38ca
@ -47,8 +47,10 @@ if __name__ == '__main__':
|
||||
|
||||
app = config.load_paste_app(conf)
|
||||
|
||||
port = config.DEFAULT_PORT
|
||||
print 'Starting Heat API on port %s' % port
|
||||
server = wsgi.Server()
|
||||
server.start(app, conf, default_port=config.DEFAULT_PORT)
|
||||
server.start(app, conf, default_port=port)
|
||||
server.wait()
|
||||
except RuntimeError, e:
|
||||
sys.exit("ERROR: %s" % e)
|
||||
|
@ -43,8 +43,10 @@ if __name__ == '__main__':
|
||||
|
||||
app = config.load_paste_app(conf)
|
||||
|
||||
port = config.DEFAULT_PORT+1
|
||||
print 'Starting Heat Engine on port %s' % port
|
||||
server = wsgi.Server()
|
||||
server.start(app, conf, default_port=config.DEFAULT_PORT+1)
|
||||
server.start(app, conf, default_port=port)
|
||||
server.wait()
|
||||
except RuntimeError, e:
|
||||
sys.exit("ERROR: %s" % e)
|
||||
|
Loading…
Reference in New Issue
Block a user