This commit is contained in:
Felix
2025-12-21 16:17:26 +08:00
parent bc90d368f7
commit 841b2cd8b5
14 changed files with 339 additions and 51 deletions

View File

@@ -26,4 +26,4 @@ COPY deploy/app_server.conf /etc/supervisor/conf.d/
EXPOSE 80
CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "80"]
CMD ["/bin/sh","-lc","cd backend && alembic upgrade head && cd .. && uvicorn backend.main:app --host 0.0.0.0 --port 80"]