Skip to content

Commit

Permalink
Bind local dev server to 127.0.0.1 (#3644)
Browse files Browse the repository at this point in the history
Fixes #3642
  • Loading branch information
jonathanmetzman authored Jan 18, 2024
1 parent 8d52cf7 commit 7d38932
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/local/butler/run_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
Expand Down

0 comments on commit 7d38932

Please sign in to comment.