From 4ee9b044bde5da9cbcfb78e8716089425f9ac72c Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Tue, 6 Jun 2023 23:32:05 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20feat(Makefile):=20add=20build=5F?= =?UTF-8?q?and=5Frun=20target=20to=20build=20and=20run=20the=20application?= =?UTF-8?q?=20The=20new=20build=5Fand=5Frun=20target=20removes=20the=20dis?= =?UTF-8?q?t=20folder,=20builds=20the=20application,=20installs=20it,=20an?= =?UTF-8?q?d=20runs=20it.=20This=20target=20is=20useful=20for=20quickly=20?= =?UTF-8?q?building=20and=20running=20the=20application=20in=20a=20develop?= =?UTF-8?q?ment=20environment.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index baf4220ff..3a00218fc 100644 --- a/Makefile +++ b/Makefile @@ -46,6 +46,12 @@ backend: make install_backend poetry run uvicorn 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_frontend: cd src/frontend && CI='' npm run build cp -r src/frontend/build src/backend/langflow/frontend