Skip to content

Commit 7d38932

Browse files
Bind local dev server to 127.0.0.1 (#3644)
Fixes #3642
1 parent 8d52cf7 commit 7d38932

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/local/butler/run_server.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,12 @@ def execute(args):
178178
os.environ['PUBSUB_EMULATOR_HOST'] = constants.PUBSUB_EMULATOR_HOST
179179
os.environ['GAE_ENV'] = 'dev'
180180
cron_server = common.execute_async(
181-
'gunicorn -b :{port} main:app'.format(port=constants.CRON_SERVICE_PORT),
181+
f'gunicorn -b 127.0.0.1:{constants.CRON_SERVICE_PORT} main:app',
182182
cwd=os.path.join('src', 'appengine'))
183183
try:
184184

185185
common.execute(
186-
'gunicorn -b :{port} main:app'.format(
187-
port=constants.DEV_APPSERVER_PORT),
186+
f'gunicorn -b 127.0.0.1:{constants.DEV_APPSERVER_PORT} main:app',
188187
cwd=os.path.join('src', 'appengine'))
189188
except KeyboardInterrupt:
190189
print('Server has been stopped. Exit.')

0 commit comments

Comments
 (0)