Fix deployment issues
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
repos:
|
||||
- repo: https://github.com/astral-sh/uv-pre-commit
|
||||
# uv version.
|
||||
rev: 0.10.10
|
||||
rev: 0.11.1
|
||||
hooks:
|
||||
- id: uv-lock
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ services:
|
||||
- "5000"
|
||||
environment:
|
||||
- FLASK_ENV=production
|
||||
- GOOGLE_BOOKS_API_KEY=${GOOGLE_BOOKS_API_KEY}
|
||||
networks:
|
||||
- hxbooks
|
||||
# Health check to ensure app is ready
|
||||
@@ -31,8 +32,7 @@ services:
|
||||
image: caddy:2-alpine
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "5123:80"
|
||||
volumes:
|
||||
# Caddyfile configuration
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
||||
|
||||
@@ -19,7 +19,7 @@ def create_app(test_config: dict | None = None) -> Flask:
|
||||
app.config.from_mapping(
|
||||
SECRET_KEY="dev",
|
||||
# Put database in project root
|
||||
SQLALCHEMY_DATABASE_URI=f"sqlite:///{PROJECT_ROOT / 'hxbooks.sqlite'}",
|
||||
SQLALCHEMY_DATABASE_URI=f"sqlite:///{PROJECT_ROOT / 'instance/hxbooks.sqlite'}",
|
||||
)
|
||||
|
||||
# Setup logging
|
||||
|
||||
Reference in New Issue
Block a user