diff --git a/Makefile b/Makefile index 168ac06d2..79a2f6582 100644 --- a/Makefile +++ b/Makefile @@ -53,12 +53,8 @@ setup_devcontainer: poetry run langflow --path src/frontend/build frontend: - @-make install_frontend - @if [ $$? -ne 0 ]; then \ - echo "An error occurred while installing frontend dependencies. Attempting to fix."; \ - make install_frontendc; \ - fi - make run_frontend + @-make install_frontend || (echo "An error occurred while installing frontend dependencies. Attempting to fix." && make install_frontendc) + @make run_frontend frontendc: make install_frontendc @@ -69,12 +65,12 @@ install_backend: backend: make install_backend -ifeq ($(autologin),1) - @echo "Running backend with autologin"; - LANGFLOW_AUTO_LOGIN=True poetry run langflow run --backend-only --port 7860 --host 0.0.0.0 -else +ifeq ($(login),1) @echo "Running backend without autologin"; - poetry run langflow run --backend-only --port 7860 --host 0.0.0.0 + poetry run langflow run --backend-only --port 7860 --host 0.0.0.0 --no-open-browser +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 endif build_and_run: