BLACK FRIDAY 2025 - 20% DESCUENTO EN TODOS LOS PLANES
Ver Ofertas →
Migration Guide

Railway to Chita Cloud Migration Guide

Step-by-step guide for migrating from Railway to Chita Cloud with minimal downtime. Fixed pricing, Redis included.

Updated: November 202512 min readIntermediate Level

Before You Start

⏱️ Time Required

1-2 hours total

🎯 Difficulty

Intermediate

📋 Prerequisites

Git access, Railway account

1Export Your Data

Database Export

# PostgreSQL Export from Railway
pg_dump -Fc --no-acl --no-owner \
  -h railway.proxy.rlwy.net \
  -p 5432 \
  -U postgres \
  -d railway \
  > backup_$(date +%Y%m%d).dump

# Verify backup
ls -lh backup_*.dump

Environment Variables

Copy all environment variables from Railway dashboard. Save to secure file.

⚠️ Important

Remove RAILWAY_* variables. DATABASE_URL and REDIS_URL will be provided by Chita Cloud.

2Prepare Your Application

Docker

FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
ENV PORT=8080
EXPOSE 8080
CMD ["npm", "start"]

Environment

# Set in Chita dashboard
PORT=8080
DATABASE_URL=... # Auto
REDIS_URL=...    # Auto
API_KEY=your_key
SECRET=your_secret

3Deploy to Chita Cloud

  1. 1.Log in to Chita Cloud dashboard
  2. 2.Click "New Project"
  3. 3.Connect your Git repository
  4. 4.Auto-detection identifies framework
  5. 5.Set environment variables
  6. 6.Click "Deploy" (2-5 minutes)

4Import Database

# Import to Chita Cloud
pg_restore --verbose --clean --no-acl --no-owner \
  -h chita-postgres.example.com \
  -p 5432 \
  -U your_user \
  -d your_database \
  backup_20251101.dump

# Verify import
psql $DATABASE_URL -c "SELECT COUNT(*) FROM your_table;"

5Test & Switch Traffic

Testing Checklist

  • Health endpoint returns 200 OK
  • Database queries working
  • Redis cache responding
  • All API endpoints functional
  • Logs show no errors

Once testing passes, update DNS to point to Chita Cloud. SSL certificate auto-provisions in 5-15 minutes.

Cost Comparison

Railway (Variable)

  • • Web app: $20-30/month
  • • PostgreSQL: $15-20/month
  • • Redis: $12-18/month
  • Total: $47-68/month

Chita Cloud (Fixed)

  • • Starter: €16/month
  • • Redis 256MB: Included
  • • PostgreSQL: +€7/month
  • Total: €23/month (~$25)

Savings: ~$25-43/month (50-65%)

Ready to Migrate?

Try our interactive cost calculator to see your potential savings

View Migration Calculator →