AI Velocity Deployment Guide¶
This guide covers deploying your AI Velocity project using the enhanced Taskfile commands and modern deployment workflows. AI Velocity maintains all Top G deployment capabilities while adding intelligent development features.
Deployment Overview¶
AI Velocity offers multiple deployment strategies optimized for modern development workflows:
Most Popular Options¶
- Railway (Single Docker) - Simplest deployment
- Vercel + Railway - Modern separation of concerns
- Single Docker (Any Platform) - Maximum flexibility
- Separate Services - Custom platform combinations
Quick Deployment Commands¶
AI Velocity includes enhanced Taskfile commands for streamlined deployment:
View All Deployment Options¶
| Bash | |
|---|---|
Most Popular Deployments¶
| Bash | |
|---|---|
Environment-Specific Deployments¶
| Bash | |
|---|---|
Railway Deployment (Recommended)¶
Single Docker Deployment¶
Perfect for: MVPs, simple deployments, getting started quickly
| Bash | |
|---|---|
What this does:
- Builds Docker image with both frontend and backend
- Guides Railway setup: CLI installation, login, project creation
- Database setup: Automatic PostgreSQL addition
- Environment variables: Configuration guidance
- Auto-deployment: Tables create automatically on startup
Complete Railway Workflow¶
This command provides comprehensive deployment assistance:
- ✅ Prerequisites check (CLI, Docker)
- ✅ Step-by-step instructions with exact commands
- ✅ Database auto-creation on startup
- ✅ Environment variable guidance
- ✅ Troubleshooting tips for common issues
- ✅ Verification steps to confirm deployment success
Vercel + Railway (Modern Approach)¶
Separate Frontend and Backend¶
Perfect for: Production apps, teams, performance optimization
| Bash | |
|---|---|
Deployment Flow:
1. Deploy Backend to Railway¶
| Bash | |
|---|---|
2. Generate Latest API Client¶
| Bash | |
|---|---|
3. Deploy Frontend to Vercel¶
| Bash | |
|---|---|
Platform-Specific Deployments¶
Digital Ocean App Platform¶
Render¶
| Bash | |
|---|---|
Heroku¶
| Bash | |
|---|---|
Environment Configuration¶
AI Velocity Environment Variables¶
AI Velocity requires the same environment variables as Top G, with these deployment considerations:
Platform Environment Setup¶
Railway:
| Bash | |
|---|---|
Vercel:
| Bash | |
|---|---|
AI Development Features in Production¶
Cursor Rules (Development Only)¶
Cursor Rules are development-time features and don't affect production deployment:
- ✅ No runtime impact: Rules only assist during development
- ✅ Not included in builds:
.cursor/folder excluded from Docker - ✅ Team sharing: Rules can be committed to git for team consistency
- ✅ No server resources: Zero production overhead
Modern Design System¶
AI Velocity's enhanced UI components deploy seamlessly:
- ✅ Light/Dark themes: Automatic theme detection works in production
- ✅ StandardButton system: Optimized bundle size
- ✅ Enhanced animations: GPU-accelerated for performance
- ✅ Mobile-first design: Responsive across all devices
Database Migrations in Production¶
Automatic Migration (Cloud Platforms)¶
AI Velocity includes automatic table creation for cloud deployments:
| Python | |
|---|---|
When to use:
- ✅ Initial cloud deployment (Railway, Render, etc.)
- ✅ Simple schema updates
- ✅ Development and staging environments
Manual Migration (Production)¶
For complex changes requiring data migration:
| Bash | |
|---|---|
Pre-Deployment Testing¶
Local Testing Workflow¶
| Bash | |
|---|---|
Staging Deployment¶
| Bash | |
|---|---|
Troubleshooting Deployment¶
Common Issues & Solutions¶
1. Database Connection Errors
| Bash | |
|---|---|
2. API Client Sync Issues
| Bash | |
|---|---|
3. Build Failures
| Bash | |
|---|---|
4. Railway Deployment Issues
| Bash | |
|---|---|
Production Monitoring¶
Health Checks¶
Your AI Velocity deployment includes health endpoints:
| Bash | |
|---|---|
Performance Optimization¶
AI Velocity is optimized for production:
- ✅ Frontend: Vite build optimization, code splitting
- ✅ Backend: Async FastAPI, connection pooling
- ✅ Database: Proper indexing, migration strategies
- ✅ Assets: Compressed images, optimized fonts
Next Steps After Deployment¶
- Configure Domain - Set up custom domain
- Monitor Performance - Set up logging and metrics
- Scale Resources - Adjust resources as needed
- CI/CD Pipeline - Automate deployments
Additional Resources¶
- Railway Deployment Guide - Detailed Railway setup
- Configuration Guide - Environment variables
- API Documentation - API endpoints and testing
Your AI Velocity app is now live!
The enhanced deployment workflows make it easy to get your AI-powered application online quickly while maintaining production-grade reliability and performance.
Deploy fast, develop faster with AI Velocity. ✨