Skip to content

Latest commit

 

History

History
115 lines (79 loc) · 2.36 KB

File metadata and controls

115 lines (79 loc) · 2.36 KB

🚀 Alternative Deployment Guide for Yiniz

Since Railway payment isn't working, here are your best alternatives:

🆓 Option 1: Render (RECOMMENDED - FREE)

Steps to Deploy on Render:

  1. Push your code to GitHub (if not already done)
  2. Go to render.com and sign up with GitHub
  3. Create New Web Service from your GitHub repo
  4. Render auto-detects Node.js - no config needed!
  5. Environment Variables (set in Render dashboard):
    NODE_ENV=production
    SESSION_SECRET=your-generated-secret
    

Add Free PostgreSQL Database:

  1. In Render dashboard → "New PostgreSQL"
  2. Choose Free plan (10GB storage)
  3. Render auto-creates DATABASE_URL environment variable
  4. Your app will automatically connect!

Total Cost: $0


💰 Option 2: Heroku ($15/month)

Deploy to Heroku:

# Install Heroku CLI
npm install -g heroku

# Login and create app
heroku login
heroku create yiniz-app

# Add JawsDB MySQL addon
heroku addons:create jawsdb:kitefin

# Deploy
git push heroku main

Cost:

  • App: $5/month (Eco plan)
  • MySQL: $10/month (JawsDB)
  • Total: $15/month

🔧 Option 3: DigitalOcean App Platform

  1. Connect GitHub repo at cloud.digitalocean.com
  2. Add Managed MySQL Database ($15/month)
  3. Deploy app ($5/month)

Total: $20/month


🌟 My Recommendation: START WITH RENDER FREE

Why Render is Perfect:

  • ✅ Completely FREE to start
  • ✅ Your file uploads will work
  • ✅ Sessions persist properly
  • ✅ 10GB PostgreSQL database included
  • ✅ Auto-deploys from GitHub
  • ✅ Custom domains
  • ✅ SSL certificates

Only Limitation:

  • App sleeps after 15 minutes of inactivity
  • Wakes up in ~30 seconds when accessed

🚀 Quick Deploy Commands:

For Render:

# Generate secure session secret first
node setup-env.js

# Commit your changes
git add .
git commit -m "Add deployment configs"
git push origin main

# Then deploy via Render web interface

For Heroku:

# One-time setup
heroku create your-app-name
heroku addons:create jawsdb:kitefin
heroku config:set NODE_ENV=production
heroku config:set SESSION_SECRET=$(node -p "require('crypto').randomBytes(32).toString('hex')")

# Deploy
git push heroku main

Your project is deployment-ready for all these platforms! 🎯