refactor: conditionally disable reload and workers in Makefile based on the presence of the workers variable (#3614)
Conditionally disable reload and workers in Makefile based on the presence of the workers variable
This commit is contained in:
parent
be3cb833dd
commit
439565413e
1 changed files with 4 additions and 4 deletions
8
Makefile
8
Makefile
|
|
@ -274,20 +274,20 @@ ifdef login
|
||||||
--factory langflow.main:create_app \
|
--factory langflow.main:create_app \
|
||||||
--host 0.0.0.0 \
|
--host 0.0.0.0 \
|
||||||
--port $(port) \
|
--port $(port) \
|
||||||
--reload \
|
$(if $(workers),,--reload) \
|
||||||
--env-file $(env) \
|
--env-file $(env) \
|
||||||
--loop asyncio \
|
--loop asyncio \
|
||||||
--workers $(workers)
|
$(if $(workers),--workers $(workers),)
|
||||||
else
|
else
|
||||||
@echo "Running backend respecting the $(env) file";
|
@echo "Running backend respecting the $(env) file";
|
||||||
poetry run uvicorn \
|
poetry run uvicorn \
|
||||||
--factory langflow.main:create_app \
|
--factory langflow.main:create_app \
|
||||||
--host 0.0.0.0 \
|
--host 0.0.0.0 \
|
||||||
--port $(port) \
|
--port $(port) \
|
||||||
--reload \
|
$(if $(workers),,--reload) \
|
||||||
--env-file $(env) \
|
--env-file $(env) \
|
||||||
--loop asyncio \
|
--loop asyncio \
|
||||||
--workers $(workers)
|
$(if $(workers),--workers $(workers),)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
build_and_run: setup_env ## build the project and run it
|
build_and_run: setup_env ## build the project and run it
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue