🚀 feat(Makefile): add build_and_run target to build and run the application

The new build_and_run target removes the dist folder, builds the application, installs it, and runs it. This target is useful for quickly building and running the application in a development environment.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-06-06 23:32:05 -03:00
commit 4ee9b044bd

View file

@ -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