Skip to content

Commit

Permalink
fix start script
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Jan 10, 2024
1 parent 5702b0d commit 9aa44fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
shm_size: '16g'
# ports:
# - 8000:8000
entrypoint: uvicorn scripts.main:app
# entrypoint: uvicorn scripts.main:app
deploy: # Enable GPU in the container
resources:
reservations:
Expand Down
3 changes: 2 additions & 1 deletion scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ fi
python3 /app/scripts/init.py

echo "🦄 Starting gunicorn with $LIBRECHAT_WORKERS workers on $BIND for the module $APP_MODULE with a timeout of $TIMEOUT sec"
exec gunicorn -w "$LIBRECHAT_WORKERS" -k "$WORKER_CLASS" -b "$BIND" --timeout "$TIMEOUT" "$APP_MODULE"
# exec gunicorn -w "$LIBRECHAT_WORKERS" -k "$WORKER_CLASS" -b "$BIND" --timeout "$TIMEOUT" "$APP_MODULE"
exec uvicorn -b "$BIND" --timeout "$TIMEOUT" "$APP_MODULE"

# -w: number of worker processes for handling requests [1]
# --threads: number of worker threads for handling requests. [1]
Expand Down

0 comments on commit 9aa44fd

Please sign in to comment.