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 \
|
||||
--host 0.0.0.0 \
|
||||
--port $(port) \
|
||||
--reload \
|
||||
$(if $(workers),,--reload) \
|
||||
--env-file $(env) \
|
||||
--loop asyncio \
|
||||
--workers $(workers)
|
||||
$(if $(workers),--workers $(workers),)
|
||||
else
|
||||
@echo "Running backend respecting the $(env) file";
|
||||
poetry run uvicorn \
|
||||
--factory langflow.main:create_app \
|
||||
--host 0.0.0.0 \
|
||||
--port $(port) \
|
||||
--reload \
|
||||
$(if $(workers),,--reload) \
|
||||
--env-file $(env) \
|
||||
--loop asyncio \
|
||||
--workers $(workers)
|
||||
$(if $(workers),--workers $(workers),)
|
||||
endif
|
||||
|
||||
build_and_run: setup_env ## build the project and run it
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue