Skip to content

Commit 4f1cb80

Browse files
committed
Merge remote-tracking branch 'origin/master'
# Conflicts: # docker-compose.yml
2 parents 193da43 + ec5ca35 commit 4f1cb80

4 files changed

Lines changed: 14 additions & 12 deletions

File tree

.github/workflows/release-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
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:

Dockerfile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ FROM python:3.9
33
RUN apt update --no-install-recommends -y
44

55
ENV 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

1313
RUN pip install "poetry==$POETRY_VERSION"
1414

@@ -19,7 +19,7 @@ WORKDIR /procollab
1919
COPY poetry.lock pyproject.toml /procollab/
2020

2121
RUN poetry config virtualenvs.create false \
22-
&& poetry install --no-root
22+
&& poetry install --no-root
2323

2424
EXPOSE 8000
2525

@@ -28,3 +28,5 @@ RUN mkdir /procollab/static
2828
COPY . /procollab/
2929

3030
CMD ["bash", "startup.sh"]
31+
32+
VOLUME ["/procollab/static/"]

docker-compose.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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

procollab/settings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@
179179

180180
STATIC_URL = "/static/"
181181
STATIC_ROOT = os.path.join(BASE_DIR, "static/")
182-
183182
STATICFILES_FINDERS = [
184183
"django.contrib.staticfiles.finders.FileSystemFinder",
185184
"django.contrib.staticfiles.finders.AppDirectoriesFinder",
@@ -218,6 +217,8 @@
218217
"SLIDING_TOKEN_REFRESH_LIFETIME": timedelta(days=1),
219218
}
220219

220+
SESSION_COOKIE_SECURE = True
221+
221222
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
222223
EMAIL_USE_TLS = True
223224
EMAIL_HOST = config("EMAIL_HOST", default="smtp.gmail.com", cast=str)

0 commit comments

Comments
 (0)