Deploy a Project

Learn how to deploy your IrisOS agent to production environments.

Deployment Options

IrisOS supports multiple deployment platforms:

  • Cloud Platforms: Vercel, Railway, Render, AWS, Google Cloud

  • Containerized: Docker, Kubernetes

  • Serverless: AWS Lambda, Google Cloud Functions

  • VPS: DigitalOcean, Linode, Vultr

Pre-Deployment Checklist

Before deploying, ensure:

Quick Deploy with Vercel

1. Prepare Your Project

2. Deploy to Vercel

3. Configure Environment Variables

In Vercel dashboard:

  1. Go to Project Settings → Environment Variables

  2. Add all required keys from your .env file

  3. Redeploy

Deploy with Railway

1. Install Railway CLI

2. Initialize Railway

3. Deploy

4. Set Environment Variables

Docker Deployment

1. Create Dockerfile

2. Build Image

3. Run Container

4. Docker Compose

Create docker-compose.yml:

Run with:

AWS Deployment

Using EC2

  1. Launch EC2 Instance

    • Choose Ubuntu 22.04 LTS

    • t3.small or larger recommended

    • Configure security groups (ports 22, 80, 443)

  2. Connect and Setup

  1. Start with PM2

Using ECS (Container Service)

  1. Build and Push Image

  1. Create ECS Task Definition

  2. Deploy to ECS Cluster

Environment Variables Management

Using dotenv-vault

Using AWS Secrets Manager

Monitoring and Logging

Setup Logging

PM2 Monitoring

Using External Services

Sentry for Error Tracking:

DataDog for Metrics:

SSL/HTTPS Setup

Using Let's Encrypt

Nginx Configuration

Scaling

Horizontal Scaling

Run multiple instances:

Load Balancing

Use nginx for load balancing:

Backup and Recovery

Database Backups

Character File Backups

Keep character files in version control and backup regularly.

Troubleshooting

Common Issues

Agent not starting:

High memory usage:

Connection timeouts:

  • Check firewall rules

  • Verify security group settings

  • Test network connectivity

Deployment Best Practices

  1. Use CI/CD: Automate deployments with GitHub Actions

  2. Health Checks: Implement health check endpoints

  3. Gradual Rollouts: Deploy to staging first

  4. Monitoring: Set up alerts for critical issues

  5. Backups: Regular automated backups

  6. Documentation: Maintain deployment runbooks

Next Steps

Support

Need help with deployment?

Last updated