File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737
3838 echo "SENTRY_DSN=${{ secrets.SENTRY_DSN }}" >> .env &&
3939
40- docker run -d --env-file .env -p 8000:8000 ghcr.io/procollab-github/api:latest
40+ docker-compose up -d
4141 PushImage :
4242 runs-on : ubuntu-latest
4343 steps :
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ FROM python:3.9
33RUN apt update --no-install-recommends -y
44
55ENV PYTHONFAULTHANDLER=1 \
6- PYTHONUNBUFFERED=1 \
7- PYTHONHASHSEED=random \
8- PIP_NO_CACHE_DIR=off \
9- PIP_DISABLE_PIP_VERSION_CHECK=on \
10- PIP_DEFAULT_TIMEOUT=100 \
11- POETRY_VERSION=1.2.2
6+ PYTHONUNBUFFERED=1 \
7+ PYTHONHASHSEED=random \
8+ PIP_NO_CACHE_DIR=off \
9+ PIP_DISABLE_PIP_VERSION_CHECK=on \
10+ PIP_DEFAULT_TIMEOUT=100 \
11+ POETRY_VERSION=1.2.2
1212
1313RUN pip install "poetry==$POETRY_VERSION"
1414
@@ -19,7 +19,7 @@ WORKDIR /procollab
1919COPY poetry.lock pyproject.toml /procollab/
2020
2121RUN poetry config virtualenvs.create false \
22- && poetry install --no-root
22+ && poetry install --no-root
2323
2424EXPOSE 8000
2525
@@ -28,3 +28,5 @@ RUN mkdir /procollab/static
2828COPY . /procollab/
2929
3030CMD ["bash" , "startup.sh" ]
31+
32+ VOLUME ["/procollab/static/" ]
Original file line number Diff line number Diff line change @@ -5,12 +5,11 @@ services:
55 build :
66 context : .
77 dockerfile : ./Dockerfile
8- # command: gunicorn procollab.wsgi:application --bind
98 ports :
109 - " 8000:8000"
11- image : web :latest
10+ image : ghcr.io/procollab-github/api :latest
1211 restart : always
1312 env_file :
1413 - .env
1514 environment :
16- HOST : 0.0.0.0
15+ HOST : 0.0.0.0
Original file line number Diff line number Diff line change 179179
180180STATIC_URL = "/static/"
181181STATIC_ROOT = os .path .join (BASE_DIR , "static/" )
182-
183182STATICFILES_FINDERS = [
184183 "django.contrib.staticfiles.finders.FileSystemFinder" ,
185184 "django.contrib.staticfiles.finders.AppDirectoriesFinder" ,
218217 "SLIDING_TOKEN_REFRESH_LIFETIME" : timedelta (days = 1 ),
219218}
220219
220+ SESSION_COOKIE_SECURE = True
221+
221222EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
222223EMAIL_USE_TLS = True
223224EMAIL_HOST = config ("EMAIL_HOST" , default = "smtp.gmail.com" , cast = str )
You can’t perform that action at this time.
0 commit comments