- Installation
- Getting Started
- Framework Support
- Deployment Guide
- Production Features
- Auto-scaling Guide
- Troubleshooting
# Using curl (recommended)
curl -fsSL https://raw.githubusercontent.com/duggal1/rustify/main/install.sh | bash
# Verify installation
rustify --version
# Using curl
curl -fsSL https://raw.githubusercontent.com/duggal1/rustify/main/install.sh | bash
# Run PowerShell as Administrator
iwr -useb https://raw.githubusercontent.com/duggal1/rustify/main/install.ps1 | iex
-
Initialize a New Project
# Create a new project with default framework (Bun) rustify init # Create a project with specific framework rustify init --type react
-
Basic Deployment
# Development deployment rustify deploy # Production deployment rustify deploy --prod
# Initialize
rustify init --type react
# Deploy with optimizations
rustify deploy --prod
Features:
- Webpack optimization
- Code splitting
- Tree shaking
- Bundle analysis
# Initialize
rustify init --type vue
# Deploy with modern mode
rustify deploy --prod
Features:
- Modern mode building
- Auto compression
- Asset optimization
# Initialize
rustify init --type mern
# Deploy full stack
rustify deploy --prod
Features:
- Full-stack optimization
- MongoDB configuration
- Express server setup
- React optimization
# Svelte
rustify init --type svelte
# Angular
rustify init --type angular
# Astro
rustify init --type astro
# Remix
rustify init --type remix
# Basic deployment
rustify deploy
# Custom port
rustify deploy --port 3000
# With cleanup
rustify deploy --cleanup
# Full production setup
rustify deploy --prod
# Production with custom port
rustify deploy --prod --port 3000
# Production with auto-scaling
rustify deploy --prod --rpl
# Full production deployment with all features
rustify deploy --prod --rpl --port 3000 --cleanup
-
Docker Integration
- Automatic Docker setup
- Optimized Dockerfile generation
- Multi-stage builds
- Layer caching
-
Kubernetes Setup
# Deploy to Kubernetes rustify deploy --prod
Features:
- Automatic namespace creation
- Resource management
- Health checks
- Load balancing
-
Monitoring
- CPU usage tracking
- Memory monitoring
- Request tracking
- Error rate monitoring
# Enable auto-scaling in production
rustify deploy --prod --rpl
- CPU-based scaling (70% threshold)
- Memory-based scaling (80% threshold)
- Automatic replica management
- Scale up to 10 pods
- Intelligent scaling policies
# Default scaling configuration
minReplicas: 1
maxReplicas: 10
metrics:
cpu: 70%
memory: 80%
-
Docker Issues
# If Docker isn't running Error: Docker daemon not responding Solution: Start Docker Desktop manually
-
Port Conflicts
# If default port is in use rustify deploy --port 3001
-
Deployment Failures
# Clean up and retry rustify deploy --cleanup
- Development
# Use development mode for testing rustify deploy
- Production
# Always use production mode with cleanup rustify deploy --prod --cleanup
- High Traffic Apps
# Enable auto-scaling for production rustify deploy --prod --rpl
- Resource Optimization
- Use
--prod
flag for production optimizations - Enable auto-scaling for high-traffic periods
- Use
--cleanup
flag for fresh deployments
- Use
- Monitoring
- Check logs regularly
- Monitor resource usage
- Track scaling events
- Maintenance
# Regular cleanup rustify deploy --cleanup # Update deployments rustify deploy --prod --rpl --cleanup
# Production environment
NODE_ENV=production
PORT=3000
# Development environment
NODE_ENV=development
PORT=8000
- Production Deployments
- Always use
--prod
flag - Enable security features
- Use proper namespaces
- Always use
- Docker Security
- Non-root user
- Limited permissions
- Secure defaults
- Kubernetes Security
- Network policies
- Resource limits
- Security contexts
The CLI automatically generates GitHub Actions workflows:
name: CI/CD Pipeline
on:
push:
branches: [main, develop]
Features:
- Automated testing
- Docker image building
- Kubernetes deployment
- Security scanning