Add automatic SQLite database backup before migrations on every server start. Backups are timestamped and stored in backups/, with WAL/SHM files included. Old backups are pruned to keep only the 10 most recent. Update dev.sh to use separate ports and database from production so both can run simultaneously on the same machine: - Production: server :3001, DB chat.db - Development: server :3002, Vite :3003, DB chat-dev.db Make Vite config dynamic via VITE_PORT and VITE_API_PORT env vars. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
40 lines
412 B
Plaintext
40 lines
412 B
Plaintext
# Rust
|
|
server/target/
|
|
server/chat.db
|
|
server/chat.db-journal
|
|
server/chat.db-wal
|
|
server/chat.db-shm
|
|
server/chat-dev.db
|
|
server/chat-dev.db-journal
|
|
server/chat-dev.db-wal
|
|
server/chat-dev.db-shm
|
|
|
|
# Database backups
|
|
backups/
|
|
|
|
# Node
|
|
client/node_modules/
|
|
client/dist/
|
|
|
|
# Environment
|
|
.env
|
|
server/.env
|
|
|
|
# IDE
|
|
.vscode/
|
|
.idea/
|
|
*.swp
|
|
*.swo
|
|
|
|
# Logs
|
|
*.log
|
|
.server-err.log
|
|
.client-err.log
|
|
|
|
# Misc
|
|
nul
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|