Refactor Makefile to use conditional statements for environment variables
This commit is contained in:
parent
70cf01b7f7
commit
395f75f5bd
1 changed files with 11 additions and 10 deletions
21
Makefile
21
Makefile
|
|
@ -59,11 +59,11 @@ 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 +72,12 @@ 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
|
||||||
make build_frontend
|
make build_frontend
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue