Skip to content

Commit 20067e2

Browse files
committed
chore: Scripts - start_local - Using fastapi dev to avoid the broken http://0.0.0.0:8000 URL in the log
The app does not work (browser disables the crypto package) when accessed via http://0.0.0.0:8000 (but http://127.0.0.1:8000 or https://* work) . We can either use `fastapi run --host 127.0.0.1` or `fastapi dev` to make the correct URL show up in the log.
1 parent 2d8b78d commit 20067e2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

start_local.cmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ set "CLOUD_PIPELINES_BACKEND_DATA_DIR=%CD%\data"
77
REM `cd $(dirname) $0`
88
cd /d "%~dp0"
99

10-
call uv run --frozen fastapi run start_local.py %*
10+
REM ! The app does not work when accessed via http://0.0.0.0:8000 (but http://127.0.0.1:8000 or https://* work).
11+
REM We can either use `fastapi run --host 127.0.0.1` or `fastapi dev` to make the correct URL show up in the log.
12+
call uv run --frozen fastapi dev start_local.py %*
1113

1214
exit /b %ERRORLEVEL%

start_local.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ set -e -o pipefail -o nounset
55
current_path=`pwd`
66
cd $(dirname $0)
77

8-
CLOUD_PIPELINES_BACKEND_DATA_DIR="${current_path}/data" uv run --frozen fastapi run start_local.py "$@"
8+
# ! The app does not work when accessed via http://0.0.0.0:8000 (but http://127.0.0.1:8000 or https://* work).
9+
# We can either use `fastapi run --host 127.0.0.1` or `fastapi dev` to make the correct URL show up in the log.
10+
CLOUD_PIPELINES_BACKEND_DATA_DIR="${current_path}/data" uv run --frozen fastapi dev start_local.py "$@"

0 commit comments

Comments
 (0)