Skip to content

Commit f5c9541

Browse files
committed
Add proxy in local_server script(#129)
1 parent e4d0b5c commit f5c9541

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

local_server.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
:: Licensed under the MIT License.
33

44
@echo off
5+
:: Set HTTP proxy environment variables only (Flask doesn't support SOCKS5)
6+
:: set http_proxy=http://127.0.0.1:7890
7+
:: set https_proxy=http://127.0.0.1:7890
8+
59
set FLASK_APP=py-src/data_formulator/app.py
610
set FLASK_RUN_PORT=5000
711
set FLASK_RUN_HOST=0.0.0.0

local_server.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Copyright (c) Microsoft Corporation.
22
# Licensed under the MIT License.
33

4+
# Set HTTP proxy environment variables only (Flask doesn't support SOCKS5)
5+
# export http_proxy=http://127.0.0.1:7890
6+
# export https_proxy=http://127.0.0.1:7890
7+
48
env FLASK_APP=py-src/data_formulator/app.py FLASK_RUN_PORT=5000 FLASK_RUN_HOST=0.0.0.0 flask run

0 commit comments

Comments
 (0)