Skip to content

Commit 172097f

Browse files
committed
chore: complete prod deploy
1 parent 346981d commit 172097f

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

deploy/prod/deploy.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ prefix=./deploy/prod
55
main=${prefix}/docker-compose.yaml
66
postgres_bootstrap=${prefix}/docker-compose.postgres-bootstrap.yaml
77

8+
docker compose -f ${main} build
89
docker compose -f ${main} rm -sf
910

1011
docker compose -f ${postgres_bootstrap} up -d --wait

deploy/prod/docker-compose.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ services:
3434
- postgres
3535
- redis
3636
command: ttt
37-
# healthcheck:
38-
# test: ["true"]
39-
# start_period: 1m
40-
# start_interval: 30s
41-
# interval: 10s
4237

4338
redis:
4439
image: redis:8.0.2-bookworm

deploy/prod/ttt/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ WORKDIR /run/app
1414
COPY --from=wheel /run/build/dist dist
1515
RUN pip install dist/* && rm dist -fr
1616

17-
COPY deploy/prod/ttt/alembic.ini .
18-
17+
COPY deploy/prod/ttt/alembic.ini /usr/local/lib/python3.13/site-packages/ttt
18+
WORKDIR /usr/local/lib/python3.13/site-packages/ttt
1919
CMD ["ttt"]

deploy/prod/ttt/alembic.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[alembic]
2-
script_location =
3-
/usr/local/lib/python3.13/site-packages/ttt/infrastructure/alembic
2+
script_location = infrastructure/alembic
43

54
prepend_sys_path = sys
65
version_path_separator = os

0 commit comments

Comments
 (0)