Update run-tests.sh to include environment file in backend startup

This commit is contained in:
anovazzi1 2024-03-15 15:07:44 -03:00
commit 7dc34c9bc6

View file

@ -54,7 +54,7 @@ sleep 10
poetry install --extras deploy
# Start the backend using 'make backend' in the background
LANGFLOW_DATABASE_URL=sqlite:///./temp LANGFLOW_AUTO_LOGIN=True poetry run langflow run --backend-only --port 7860 --host 0.0.0.0 --no-open-browser &
LANGFLOW_DATABASE_URL=sqlite:///./temp LANGFLOW_AUTO_LOGIN=True poetry run langflow run --backend-only --port 7860 --host 0.0.0.0 --no-open-browser --env-file .env &
# Give some time for the backend to start (adjust sleep duration as needed)
sleep 25