Add dependencies and update run_cli commands
This commit is contained in:
parent
9c029424ab
commit
660b62bc08
1 changed files with 25 additions and 10 deletions
35
Makefile
35
Makefile
|
|
@ -6,6 +6,20 @@ setup_poetry:
|
||||||
pipx install poetry
|
pipx install poetry
|
||||||
poetry self add poetry-monorepo-dependency-plugin
|
poetry self add poetry-monorepo-dependency-plugin
|
||||||
|
|
||||||
|
add:
|
||||||
|
@echo 'Adding dependencies'
|
||||||
|
ifdef devel
|
||||||
|
cd src/backend/base && poetry add --group dev $(devel)
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef main
|
||||||
|
poetry add $(main)
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef base
|
||||||
|
cd src/backend/base && poetry add $(base)
|
||||||
|
endif
|
||||||
|
|
||||||
init:
|
init:
|
||||||
@echo 'Installing backend dependencies'
|
@echo 'Installing backend dependencies'
|
||||||
make install_backend
|
make install_backend
|
||||||
|
|
@ -59,11 +73,12 @@ run_cli:
|
||||||
@make build_frontend > /dev/null
|
@make build_frontend > /dev/null
|
||||||
@echo 'Install backend dependencies'
|
@echo 'Install backend dependencies'
|
||||||
@make install_backend > /dev/null
|
@make install_backend > /dev/null
|
||||||
ifdef env
|
ifdef env
|
||||||
poetry run langflow run --path src/frontend/build --host $(host) --port $(port) --env-file $(env)
|
poetry run langflow run --path src/frontend/build --host $(host) --port $(port) --env-file $(env)
|
||||||
else
|
else
|
||||||
poetry run langflow run --path src/frontend/build --host $(host) --port $(port) --env-file .env
|
poetry run langflow run --path src/frontend/build --host $(host) --port $(port) --env-file .env
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
run_cli_debug:
|
run_cli_debug:
|
||||||
@echo 'Running the CLI in debug mode'
|
@echo 'Running the CLI in debug mode'
|
||||||
|
|
@ -72,11 +87,11 @@ run_cli_debug:
|
||||||
@make build_frontend > /dev/null
|
@make build_frontend > /dev/null
|
||||||
@echo 'Install backend dependencies'
|
@echo 'Install backend dependencies'
|
||||||
@make install_backend > /dev/null
|
@make install_backend > /dev/null
|
||||||
ifdef env
|
ifdef env
|
||||||
poetry run langflow run --path src/frontend/build --log-level debug --host $(host) --port $(port) --env-file $(env)
|
poetry run langflow run --path src/frontend/build --log-level debug --host $(host) --port $(port) --env-file $(env)
|
||||||
else
|
else
|
||||||
poetry run langflow run --path src/frontend/build --log-level debug --host $(host) --port $(port) --env-file .env
|
poetry run langflow run --path src/frontend/build --log-level debug --host $(host) --port $(port) --env-file .env
|
||||||
endif
|
endif
|
||||||
|
|
||||||
setup_devcontainer:
|
setup_devcontainer:
|
||||||
make init
|
make init
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue