diff --git a/src/local/butler/run_server.py b/src/local/butler/run_server.py index 4b7b8f4cb9..628bdf7e2a 100644 --- a/src/local/butler/run_server.py +++ b/src/local/butler/run_server.py @@ -178,13 +178,12 @@ def execute(args): os.environ['PUBSUB_EMULATOR_HOST'] = constants.PUBSUB_EMULATOR_HOST os.environ['GAE_ENV'] = 'dev' cron_server = common.execute_async( - 'gunicorn -b :{port} main:app'.format(port=constants.CRON_SERVICE_PORT), + f'gunicorn -b 127.0.0.1:{constants.CRON_SERVICE_PORT} main:app', cwd=os.path.join('src', 'appengine')) try: common.execute( - 'gunicorn -b :{port} main:app'.format( - port=constants.DEV_APPSERVER_PORT), + f'gunicorn -b 127.0.0.1:{constants.DEV_APPSERVER_PORT} main:app', cwd=os.path.join('src', 'appengine')) except KeyboardInterrupt: print('Server has been stopped. Exit.')