Skip to content

Commit

Permalink
feat: ws deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
helllllllder committed Jan 23, 2024
1 parent e808474 commit 78f075f
Show file tree
Hide file tree
Showing 6 changed files with 1,700 additions and 353 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:

- name: Install dependencies
run: |
pip install --upgrade pip poetry
pip install --upgrade pip poetry==1.7.1
poetry config virtualenvs.create false --local
poetry install
Expand Down
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

export GUNICORN_APP=${GUNICORN_APP:-"chats.asgi"}
export GUNICORN_APP=${GUNICORN_APP:-"chats.wsgi"}
export CELERY_APP=${CELERY_APP:-"chats"}
export GUNICORN_CONF=${GUNICORN_CONF:-"${PROJECT_PATH}/gunicorn.conf.py"}
export LOG_LEVEL=${LOG_LEVEL:-"INFO"}
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# syntax = docker/dockerfile:1

ARG PYTHON_VERSION="3.9"
ARG POETRY_VERSION="1.1.15"
ARG POETRY_VERSION="1.7.1"

ARG BUILD_DEPS="\
python3-dev \
Expand Down
1 change: 0 additions & 1 deletion gunicorn.conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
workers = os.environ.get("GUNICORN_WORKERS", multiprocessing.cpu_count() * 2 + 1)
proc_name = "chats"
default_proc_name = proc_name
worker_class = "uvicorn.workers.UvicornWorker"
accesslog = "gunicorn.access"
timeout = 120
bind = "0.0.0.0"
Expand Down
Loading

0 comments on commit 78f075f

Please sign in to comment.