Skip to content

Commit

Permalink
fix deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Jan 16, 2025
1 parent 6161b00 commit 2ae949c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ RUN pip install -e ".[cpu]" "../sparql-llm"

# https://github.com/tiangolo/uvicorn-gunicorn-docker/blob/master/docker-images/gunicorn_conf.py

CMD ["uvicorn", "src.expasy_agent.api", "--host", "0.0.0.0", "--port", "80", "--workers", "4"]
CMD ["uvicorn", "src.expasy_agent.api:app", "--host", "0.0.0.0", "--port", "80", "--workers", "8"]
# CMD ["uvicorn", "src.expasy_agent.api", "--host", "0.0.0.0", "--port", "80", "--workers", "4", "--http", "h11"]
2 changes: 1 addition & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ssh_cmd() {

if [ "$1" = "build" ]; then
echo "📦️ Re-building"
scp ./packages/expasy-agent/src/expasy_agent/webapp expasychat:/var/containers/podman/sparql-llm/packages/expasy-agent/src/expasy_agent/webapp
scp -r ./packages/expasy-agent/src/expasy_agent/webapp expasychat:/var/containers/podman/sparql-llm/packages/expasy-agent/src/expasy_agent/webapp
ssh_cmd "git pull ; podman-compose up --force-recreate --build -d"

elif [ "$1" = "clean" ]; then
Expand Down

0 comments on commit 2ae949c

Please sign in to comment.