From c5d6f487fac2a9f144913bd515c924416da6aade Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Mon, 19 Jun 2023 14:28:29 -0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(Makefile):=20add=20build=5Fand?= =?UTF-8?q?=5Finstall=20target=20to=20build=20and=20install=20package=20wi?= =?UTF-8?q?thout=20running=20it=20The=20path=20to=20the=20langflow.main=20?= =?UTF-8?q?module=20was=20incorrect,=20causing=20the=20backend=20target=20?= =?UTF-8?q?to=20fail.=20The=20path=20has=20been=20updated=20to=20the=20cor?= =?UTF-8?q?rect=20location.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The build_and_install target has been added to build the package and install it without running it. This is useful when the package needs to be built and installed on a remote server. 🐛 fix(Makefile): fix path to langflow.main module in backend target --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6c1989ee1..bfed91f37 100644 --- a/Makefile +++ b/Makefile @@ -44,13 +44,18 @@ install_backend: backend: make install_backend - poetry run uvicorn langflow.main:app --port 7860 --reload --log-level debug + poetry run uvicorn src.backend.langflow.main:app --port 7860 --reload --log-level debug build_and_run: echo 'Removing dist folder' rm -rf dist make build && poetry run pip install dist/*.tar.gz && poetry run langflow +build_and_install: + echo 'Removing dist folder' + rm -rf dist + make build && poetry run pip install dist/*.tar.gz + build_frontend: cd src/frontend && CI='' npm run build cp -r src/frontend/build src/backend/langflow/frontend