better entrypoints

This commit is contained in:
Brian Rosner 2025-01-12 13:09:43 -07:00
parent 9ef80a1379
commit f041905194
3 changed files with 5 additions and 6 deletions

View File

@ -47,8 +47,7 @@ RUN uv sync --frozen --dev
EXPOSE 8000
ENTRYPOINT ["teufa"]
CMD ["server", "--dev"]
CMD ["teufa", "server", "--dev"]
## ci image
@ -69,5 +68,4 @@ COPY --from=builder-base /opt/app /opt/app
WORKDIR $APP_HOME
ENTRYPOINT ["teufa"]
CMD ["server"]
CMD ["teufa", "server"]

View File

@ -1 +1,2 @@
release: alembic upgrade head
web: teufa server
release: teufa alembic upgrade head

View File

@ -26,7 +26,7 @@ services:
- "5432:5432"
migrate:
image: teufa:latest
command: alembic upgrade head
command: teufa alembic upgrade head
environment:
DATABASE_URL: postgresql+psycopg://postgres:changeme@db:5432/postgres
depends_on: