From 18d92c07d643a2d77fbf5844de0040fc7adfcc8f Mon Sep 17 00:00:00 2001 From: Nirmal Ranganathan Date: Thu, 24 May 2012 14:54:55 -0500 Subject: [PATCH] Updating the port in reddwarf-api --- bin/reddwarf-api | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/reddwarf-api b/bin/reddwarf-api index ad3711e4e5..118cfb3897 100755 --- a/bin/reddwarf-api +++ b/bin/reddwarf-api @@ -47,7 +47,7 @@ def create_options(parser): """ parser.add_option('-p', '--port', dest="port", metavar="PORT", - type=int, default=8779, + type=int, help="Port the Reddwarf API host listens on. " "Default: %default") config.add_common_options(parser) @@ -64,7 +64,7 @@ if __name__ == '__main__': conf, app = config.Config.load_paste_app('reddwarf', options, args) db_api.configure_db(conf) server = wsgi.Server() - server.start(app, options.get('port', conf['bind_port']), + server.start(app, int(options.get('port') or conf['bind_port']), conf['bind_host']) server.wait() except RuntimeError as error: