📝 chore(.env.example): add LANGFLOW_STORE_URL variable to the example file for configuring the store URL

🐛 fix(Makefile): add --env-file .env option to the 'backend' target to load environment variables from .env file
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-10-18 17:00:39 -03:00
commit 7b158c6ae6
2 changed files with 6 additions and 2 deletions

View file

@ -71,3 +71,7 @@ LANGFLOW_SUPERUSER=
# Superuser password
# Example: LANGFLOW_SUPERUSER_PASSWORD=123456
LANGFLOW_SUPERUSER_PASSWORD=
# STORE_URL
# Example: LANGFLOW_STORE_URL=https://langflow.store
LANGFLOW_STORE_URL=

View file

@ -74,10 +74,10 @@ backend:
make install_backend
ifeq ($(login),1)
@echo "Running backend without autologin";
poetry run langflow run --backend-only --port 7860 --host 0.0.0.0 --no-open-browser
poetry run langflow run --backend-only --port 7860 --host 0.0.0.0 --no-open-browser --env-file .env
else
@echo "Running backend with autologin";
LANGFLOW_AUTO_LOGIN=True poetry run langflow run --backend-only --port 7860 --host 0.0.0.0 --no-open-browser
LANGFLOW_AUTO_LOGIN=True poetry run langflow run --backend-only --port 7860 --host 0.0.0.0 --no-open-browser --env-file .env
endif
build_and_run: