develop #18

Merged
darroyo merged 2 commits from develop into main 2026-03-24 17:48:21 +00:00
3 changed files with 4 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ EXPOSE 3000
ENV PORT=3000
ENV HOSTNAME="0.0.0.0"
ENV DATABASE_URL="file:./data/dev.db"
ENV DATABASE_URL="file:/app/data/dev.db"
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD ["node", "server.js"]

View File

@@ -8,5 +8,5 @@ services:
volumes:
- ./data:/app/data
environment:
- DATABASE_URL=file:./data/dev.db
- DATABASE_URL=file:/app/data/dev.db
restart: unless-stopped

View File

@@ -1,6 +1,8 @@
#!/bin/bash
set -e
cd /app
# Initialize database if it doesn't exist or schema changed
echo "Checking database..."