Add conditional logic for environment file in Makefile
This commit is contained in:
parent
8b68f06593
commit
975340af9e
1 changed files with 9 additions and 2 deletions
11
Makefile
11
Makefile
|
|
@ -57,15 +57,22 @@ run_cli:
|
||||||
@make install_frontend > /dev/null
|
@make install_frontend > /dev/null
|
||||||
@echo 'Building the frontend'
|
@echo 'Building the frontend'
|
||||||
@make build_frontend > /dev/null
|
@make build_frontend > /dev/null
|
||||||
|
ifdef env
|
||||||
|
poetry run langflow run --path src/frontend/build --host $(host) --port $(port) --env-file $(env)
|
||||||
|
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
|
||||||
|
|
||||||
run_cli_debug:
|
run_cli_debug:
|
||||||
@echo 'Running the CLI in debug mode'
|
@echo 'Running the CLI in debug mode'
|
||||||
@make install_frontend > /dev/null
|
@make install_frontend > /dev/null
|
||||||
@echo 'Building the frontend'
|
@echo 'Building the frontend'
|
||||||
@make build_frontend > /dev/null
|
@make build_frontend > /dev/null
|
||||||
poetry run langflow run --path src/frontend/build --log-level debug --host $(host) --port $(port) --env-file .env
|
ifdef env
|
||||||
|
poetry run langflow run --path src/frontend/build --log-level debug --host $(host) --port $(port) --env-file $(env)
|
||||||
|
else
|
||||||
|
poetry run langflow run --path src/frontend/build --log-level debug --host $(host) --port $(port) --env-file .env
|
||||||
|
endif
|
||||||
setup_devcontainer:
|
setup_devcontainer:
|
||||||
make init
|
make init
|
||||||
make build_frontend
|
make build_frontend
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue