fix: replace instances of 127.0.0.1 to localhost (#8536)
* Replace instances of 127.0.0.1 to localhost * fix some replace-all issues * fix some replace-all issues * update starterprojects * Upgrade uvlock
This commit is contained in:
parent
5c38d0223d
commit
b77351331d
33 changed files with 3959 additions and 5686 deletions
4
.github/workflows/python_test.yml
vendored
4
.github/workflows/python_test.yml
vendored
|
|
@ -138,10 +138,10 @@ jobs:
|
|||
if: steps.check-version.outputs.skipped == 'false'
|
||||
run: |
|
||||
source new-venv/bin/activate
|
||||
python -m langflow run --host 127.0.0.1 --port 7860 --backend-only &
|
||||
python -m langflow run --host localhost --port 7860 --backend-only &
|
||||
SERVER_PID=$!
|
||||
# Wait for the server to start
|
||||
timeout 120 bash -c 'until curl -f http://127.0.0.1:7860/api/v1/auto_login; do sleep 5; done' || (echo "Server did not start in time" && kill $SERVER_PID && exit 1)
|
||||
timeout 120 bash -c 'until curl -f http://localhost:7860/api/v1/auto_login; do sleep 5; done' || (echo "Server did not start in time" && kill $SERVER_PID && exit 1)
|
||||
# Terminate the server
|
||||
kill $SERVER_PID || (echo "Failed to terminate the server" && exit 1)
|
||||
sleep 20 # give the server some time to terminate
|
||||
|
|
|
|||
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
|
|
@ -96,10 +96,10 @@ jobs:
|
|||
mkdir src/backend/base/dist
|
||||
mv dist/*.whl src/backend/base/dist
|
||||
uv pip install src/backend/base/dist/*.whl
|
||||
uv run python -m langflow run --host 127.0.0.1 --port 7860 --backend-only &
|
||||
uv run python -m langflow run --host localhost --port 7860 --backend-only &
|
||||
SERVER_PID=$!
|
||||
# Wait for the server to start
|
||||
timeout 120 bash -c 'until curl -f http://127.0.0.1:7860/api/v1/auto_login; do sleep 2; done' || (echo "Server did not start in time" && kill $SERVER_PID && exit 1)
|
||||
timeout 120 bash -c 'until curl -f http://localhost:7860/api/v1/auto_login; do sleep 2; done' || (echo "Server did not start in time" && kill $SERVER_PID && exit 1)
|
||||
# Terminate the server
|
||||
kill $SERVER_PID || (echo "Failed to terminate the server" && exit 1)
|
||||
sleep 20 # give the server some time to terminate
|
||||
|
|
@ -177,10 +177,10 @@ jobs:
|
|||
- name: Test CLI
|
||||
run: |
|
||||
uv pip install dist/*.whl
|
||||
uv run python -m langflow run --host 127.0.0.1 --port 7860 --backend-only &
|
||||
uv run python -m langflow run --host localhost --port 7860 --backend-only &
|
||||
SERVER_PID=$!
|
||||
# Wait for the server to start
|
||||
timeout 120 bash -c 'until curl -f http://127.0.0.1:7860/health_check; do sleep 2; done' || (echo "Server did not start in time" && kill $SERVER_PID && exit 1)
|
||||
timeout 120 bash -c 'until curl -f http://localhost:7860/health_check; do sleep 2; done' || (echo "Server did not start in time" && kill $SERVER_PID && exit 1)
|
||||
# Terminate the server
|
||||
kill $SERVER_PID || (echo "Failed to terminate the server" && exit 1)
|
||||
sleep 20 # give the server some time to terminate
|
||||
|
|
|
|||
8
.github/workflows/release_nightly.yml
vendored
8
.github/workflows/release_nightly.yml
vendored
|
|
@ -111,10 +111,10 @@ jobs:
|
|||
mkdir src/backend/base/dist
|
||||
mv dist/*.whl src/backend/base/dist/
|
||||
uv pip install src/backend/base/dist/*.whl
|
||||
uv run python -m langflow run --host 127.0.0.1 --port 7860 --backend-only &
|
||||
uv run python -m langflow run --host localhost --port 7860 --backend-only &
|
||||
SERVER_PID=$!
|
||||
# Wait for the server to start
|
||||
timeout 120 bash -c 'until curl -f http://127.0.0.1:7860/api/v1/auto_login; do sleep 2; done' || (echo "Server did not start in time" && kill $SERVER_PID && exit 1)
|
||||
timeout 120 bash -c 'until curl -f http://localhost:7860/api/v1/auto_login; do sleep 2; done' || (echo "Server did not start in time" && kill $SERVER_PID && exit 1)
|
||||
# Terminate the server
|
||||
kill $SERVER_PID || (echo "Failed to terminate the server" && exit 1)
|
||||
sleep 20 # give the server some time to terminate
|
||||
|
|
@ -188,10 +188,10 @@ jobs:
|
|||
- name: Test CLI
|
||||
run: |
|
||||
uv pip install dist/*.whl
|
||||
uv run python -m langflow run --host 127.0.0.1 --port 7860 --backend-only &
|
||||
uv run python -m langflow run --host localhost --port 7860 --backend-only &
|
||||
SERVER_PID=$!
|
||||
# Wait for the server to start
|
||||
timeout 120 bash -c 'until curl -f http://127.0.0.1:7860/health_check; do sleep 2; done' || (echo "Server did not start in time" && kill $SERVER_PID && exit 1)
|
||||
timeout 120 bash -c 'until curl -f http://localhost:7860/health_check; do sleep 2; done' || (echo "Server did not start in time" && kill $SERVER_PID && exit 1)
|
||||
# Terminate the server
|
||||
kill $SERVER_PID || (echo "Failed to terminate the server" && exit 1)
|
||||
sleep 20 # give the server some time to terminate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue