Cline,Roo,Cursor + Coolify: This is HOW I Deploy AI Generated APPS EASILY!

AICodeKingAbout 5 min readJul 30, 2025Watch original
THE SUMMARYAI-generated

Key Concepts:

  • AI Coders
  • Hosting Web Apps
  • Serverless vs. VPS Hosting
  • Fixed Price Hosting
  • Coolify (Self-Hostable Heroku/Netlify/Vercel Alternative)
  • VPS (Virtual Private Server)
  • Hostinger
  • Auto-Deployment
  • GitHub Integration
  • Self-Hosting Databases (Superbase, Convex)

Hosting Web Apps Made with AI Coders: A Cost-Effective Approach

1. The Problem with Serverless Hosting (Vercel):

  • While seemingly convenient, serverless platforms like Vercel can lead to unpredictable and potentially high costs.
  • Vercel charges not only a subscription fee ($20 for useful limits) but also per action or visit exceeding those limits.
  • This can result in unexpectedly large bills, especially if an app experiences a surge in traffic.
  • The "Serverless Horrors" website documents instances of people facing such issues.
  • The presenter argues that serverless is not necessarily the best option, especially for those coding with AI, as more cost-effective alternatives exist.

2. The VPS + Coolify Solution:

  • The presenter advocates for using a VPS (Virtual Private Server) combined with Coolify for hosting web apps.
  • Coolify is a self-hostable alternative to platforms like Heroku, Netlify, and Vercel.
  • It allows managing servers, applications, and databases on your own hardware via an SSH connection.
  • This setup provides features similar to Vercel, such as auto-deployment from GitHub, but with a fixed monthly cost and greater control over scaling.
  • You can connect as many domains and host as many sites as you want.

3. Setting Up the VPS with Hostinger:

  • The presenter uses Hostinger as the VPS provider, specifically the KVM2 plan.
  • The KVM2 plan costs $6.99 per month (with a 24-month term) and includes:
    • 2 CPU cores
    • 8 GB of RAM
    • 100 GB of SSD storage
    • 8 TB of bandwidth
  • The presenter emphasizes that 8 TB of bandwidth would cost over $1,000 on Vercel.
  • A custom discount code "AIODEKking" or the link hostinger.com/icodeking provides an additional discount on yearly plans.
  • During setup, select the server location closest to your target users for optimal performance.
  • Hostinger offers an option to install Coolify automatically during OS selection, simplifying the setup process. Alternatively, you can install Docker and Coolify manually using instructions from the presenter's previous video.
  • Setting up a root password and SSH key is required for secure access. The video provides a command to generate an SSH key if needed.
  • To connect a domain, update the domain's A record to point to the server's IP address. Hostinger also offers domain registration services.

4. Configuring Coolify for Auto-Deployment:

  • After setting up the VPS, connect to it via SSH.
  • Coolify runs on port 8000 by default, so access it via your_server_ip:8000.
  • Set up the admin login for Coolify.
  • The Coolify interface allows managing projects, servers, storage, and databases.
  • To set up auto-deployment:
    1. Go to the "Projects" section and click "Add."
    2. Enter the project name and select or add a new environment (e.g., staging, production).
    3. Add a resource, choosing "Public GitHub Repo" for auto-deployment from GitHub.
    4. Provide the GitHub repository URL and click "Check Repo."
    5. Click "Continue" to create the project.
    6. Click the "Deploy" button to initiate the initial deployment.
    7. View the logs to monitor the deployment process.
  • Coolify uses a temporary SSL domain initially, but you can point your own domain to the server IP and add it in Coolify.
  • After the initial setup, any push to the GitHub repository will automatically trigger a new deployment.

5. Additional Benefits and Use Cases:

  • Coolify allows self-hosting databases like Superbase and Convex, reducing database costs.
  • The graphical interface simplifies management without requiring command-line expertise.
  • The presenter uses this setup for all their coding projects, including those created with AI, due to its flexibility and cost-effectiveness.

6. Notable Quotes:

  • "[Vercel] is not a fixed price, meaning that you not only need to pay the $20 subscription to get useful limits, but you also need to pay per action or visit when you go above the limit, which can really slap you with a hefty bill."
  • "With simple tricks, you can save a ton of money on hosting and keep everything in your control."
  • "Koolifi for those who don't know is a self-hostable Heroku Netlfi Versel alternative. It helps you manage your servers, applications, and databases on your own hardware."

7. Technical Terms:

  • VPS (Virtual Private Server): A virtualized server that provides dedicated resources within a larger physical server.
  • Serverless: A cloud computing execution model where the cloud provider dynamically manages the allocation of machine resources.
  • SSH (Secure Shell): A cryptographic network protocol for secure communication between two computers.
  • A Record: A DNS record that maps a domain name to an IP address.
  • Auto-Deployment: Automatically deploying code changes to a server whenever updates are pushed to a repository (e.g., GitHub).
  • Docker: A platform for developing, shipping, and running applications in containers.

8. Logical Connections:

  • The video starts by highlighting the problem of unpredictable costs with serverless hosting.
  • It then introduces the VPS + Coolify solution as a cost-effective alternative.
  • The video provides a step-by-step guide on setting up the VPS with Hostinger and configuring Coolify for auto-deployment.
  • It concludes by emphasizing the benefits of this approach, including cost savings, control, and flexibility.

9. Synthesis/Conclusion:

The video advocates for a VPS + Coolify setup as a more predictable and cost-effective alternative to serverless hosting platforms like Vercel, especially for applications developed with AI coders. By using a VPS from Hostinger and Coolify for management and auto-deployment, developers can maintain control over their hosting environment, avoid unexpected costs, and scale their applications as needed without the limitations of serverless pricing models. The video provides a detailed walkthrough of the setup process, making it accessible to developers looking for a more affordable and manageable hosting solution.

AI summaries can miss context or contain errors. Check important details against the original video.

Go a little deeper.

Have a question about this video? Load its transcript to open the video chat.