🚀 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:
parent
e7e510a218
commit
4ee9b044bd
1 changed files with 6 additions and 0 deletions
6
Makefile
6
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue