Commit 106e708f authored by Raphael Beer's avatar Raphael Beer

Add: --host parameter

parent ab88423f
...@@ -3,9 +3,8 @@ COOKIE_DIR=./.htcookies ...@@ -3,9 +3,8 @@ COOKIE_DIR=./.htcookies
LOG_FILE=./logs/results.log LOG_FILE=./logs/results.log
DEBUG_FILE=./logs/debug.log DEBUG_FILE=./logs/debug.log
PORT=4040 PORT=4040
HOST=127.0.0.1
MONGO_HOST=127.0.0.1 MONGO_HOST=127.0.0.1
MONGO_PORT=27017 MONGO_PORT=27017
MONGO_DB=tester MONGO_DB=tester
MONGO_RESULTS_COLLECTION=results
MONGO_OVERSHOT_COLLECTION=overshot
TWITTER_AUTH_KEY=GRAPHQL_KEY TWITTER_AUTH_KEY=GRAPHQL_KEY
...@@ -531,6 +531,7 @@ parser.add_argument('--log', type=str, default=None, help='log file where test r ...@@ -531,6 +531,7 @@ parser.add_argument('--log', type=str, default=None, help='log file where test r
parser.add_argument('--daemon', action='store_true', help='run in background') parser.add_argument('--daemon', action='store_true', help='run in background')
parser.add_argument('--debug', type=str, default=None, help='debug log file') parser.add_argument('--debug', type=str, default=None, help='debug log file')
parser.add_argument('--port', type=int, default=8080, help='port which to listen on') parser.add_argument('--port', type=int, default=8080, help='port which to listen on')
parser.add_argument('--host', type=str, default='127.0.0.1', help='hostname/ip which to listen on')
parser.add_argument('--mongo-host', type=str, default='localhost', help='hostname or IP of mongoDB service to connect to') parser.add_argument('--mongo-host', type=str, default='localhost', help='hostname or IP of mongoDB service to connect to')
parser.add_argument('--mongo-port', type=int, default=27017, help='port of mongoDB service to connect to') parser.add_argument('--mongo-port', type=int, default=27017, help='port of mongoDB service to connect to')
parser.add_argument('--mongo-db', type=str, default='tester', help='name of mongo database to use') parser.add_argument('--mongo-db', type=str, default='tester', help='name of mongo database to use')
...@@ -563,7 +564,7 @@ def run(): ...@@ -563,7 +564,7 @@ def run():
loop.run_until_complete(login_guests()) loop.run_until_complete(login_guests())
app = web.Application() app = web.Application()
app.add_routes(routes) app.add_routes(routes)
web.run_app(app, host='127.0.0.1', port=args.port) web.run_app(app, host=args.host, port=args.port)
if args.daemon: if args.daemon:
with daemon.DaemonContext(): with daemon.DaemonContext():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment