Skip to content

Commit

Permalink
Исправлена рассылка писем из docker контейнера
Browse files Browse the repository at this point in the history
  • Loading branch information
vklachkov committed Sep 25, 2024
1 parent 381a7f0 commit 05434b6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
5 changes: 3 additions & 2 deletions backend/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
target
.vscode
.vscode
target*
Dockerfile
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN cargo build --release

FROM debian:bookworm-slim

RUN apt-get update && apt-get install -y libpq-dev
RUN apt-get update && apt-get install -y ca-certificates libpq-dev

COPY --from=builder /app/target/release/backend /bin

Expand Down
2 changes: 1 addition & 1 deletion backend/scripts/send_participants_codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
id = participant["id"]
code = participant["code"]

if id <= 60:
if id <= 61:
print(f"Письмо на почту {email} уже отправлено")
continue

Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ services:
- NOTISEND_TOKEN=${NOTISEND_TOKEN}
volumes:
- "backend-data:/var/lib/backend"
ports:
- 8833:80
networks:
- postgres
labels:
Expand Down
3 changes: 2 additions & 1 deletion frontend/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.vscode
dist
node_modules
.vscode
Dockerfile

0 comments on commit 05434b6

Please sign in to comment.