feat: Enhance Stripe service to check for users table existence before altering

This commit is contained in:
Your Name
2026-03-19 01:46:13 +02:00
parent 140aaf7904
commit 759bcd2437
3 changed files with 10 additions and 3 deletions

View File

@@ -48,5 +48,5 @@ EXPOSE 5000
HEALTHCHECK --interval=30s --timeout=10s --retries=3 \
CMD curl -f http://localhost:5000/api/health || exit 1
# Run with Gunicorn
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "4", "--timeout", "120", "wsgi:app"]
# Run with Gunicorn (--preload ensures DB tables are created once before forking workers)
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "4", "--timeout", "120", "--preload", "wsgi:app"]