Claude
|
c8567e12cc
|
Fix Railway startup errors and add PostgreSQL setup guide
**Fixed Railway Startup Issues:**
- Reorder commands: migrate before backup_users
- Make backup_users handle missing tables gracefully
- Add proper error handling for unmigrated databases
- Check for table existence before querying users
**Added Railway Setup Guide:**
- Complete PostgreSQL configuration instructions
- Environment variables template
- Database verification commands
- Troubleshooting steps for persistent storage
**Key Issue Resolution:**
- Railway using SQLite (ephemeral) instead of PostgreSQL
- Users disappear because SQLite resets on each deployment
- Need to add PostgreSQL database addon in Railway
**Next Steps:**
1. Add PostgreSQL database in Railway dashboard
2. Verify DATABASE_URL environment variable
3. Deploy with persistent database
4. Create admin user via Railway console
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-07-12 09:16:39 +05:30 |
|