Skip to content

Commit

Permalink
disable live_reload
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianshu Cheng authored and Tianshu Cheng committed Sep 13, 2024
1 parent f6f340d commit c3679f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "truss"
version = "0.9.32.dev-34"
version = "0.9.32.dev-35"
description = "A seamless bridge from model development to model delivery"
license = "MIT"
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions truss/templates/server.Dockerfile.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ COPY ./{{base_server_requirements_filename}} {{base_server_requirements_filename
RUN pip install -r {{base_server_requirements_filename}} --no-cache-dir && rm -rf /root/.cache/pip
{%- endif %}

{%- if config.live_reload %}
{%- if config.live_reload and not config.docker_server%}
RUN $PYTHON_EXECUTABLE -m venv -h >/dev/null \
|| { pythonVersion=$(echo $($PYTHON_EXECUTABLE --version) | cut -d" " -f2 | cut -d"." -f1,2) \
&& add-apt-repository -y ppa:deadsnakes/ppa \
Expand Down Expand Up @@ -81,7 +81,7 @@ COPY ./server /app
COPY ./{{ config.model_module_dir }} /app/model
{%- endif %}
COPY ./config.yaml /app/config.yaml
{%- if config.live_reload %}
{%- if config.live_reload and not config.docker_server%}
COPY ./control /control
RUN python3 -m venv /control/.env \
&& /control/.env/bin/pip3 install -r /control/requirements.txt
Expand Down

0 comments on commit c3679f7

Please sign in to comment.