Heroku Free Tier Alternatives
Starting from November 28th, 2022 Heroku?shuts down their free tier , which means that?free Heroku Dynos, Postgres and Redis servers will no longer be available.
For that reason, we will look at the 5 best Heroku alternatives where you can host your full-stack applications, your backend APIs, or your websites, and all of them offer a free plan. If you have a side project, that you want to host or you just want to deploy your app for testing it somewhere for free you can deploy it in one of these cloud platforms.
A sample app for demonstrating the deployments can be found in this?GitHub repository .?It’s a simple Express.js app just so we can verify our deployment.
So let’s go through the hosting providers one by one and deploy our test app, or you can deploy your real app if you have one.
Render
The first one is?Render . This is the most similar service to Heroku which offers a free plan on its?pricing ?page.
They offer services such as
The?sign-up process ?is pretty straightforward, just select your GitHub or GitLab account, sign up and you are ready to deploy.
Deployment
To deploy a Node?Express ?application on Render, follow the steps below
Render will trigger a deployment now by cloning the provided repo, building the Docker image, and running the container. This might take about 5 minutes to complete.
Once it’s done, you can see your service running in the logs. To verify that it worked open up the URL provided by Render, you should see the application up and running on that URL.
You can monitor the application in the “Logs” tab. If you have any environmental variables add them in the “Environment” tab variables. And you can check out your latest deployments in the “Events” tab.
Limits
Web services on the free plan have?limits ?in Render.
Cyclic
Next, we have?Cyclic , a cloud platform focused on full-stack applications. The best thing about Cyclic is that it has no sleep, even with a free tier, meaning that apps do not have to sleep (like in Heroku and Render), wake up, spin up or recycle. All front-ends and back-ends are ready on-demand, immediately, and at all times.
It’s because there are no servers and each app is deployed entirely on serverless cloud infrastructure.
Deployment
Code is deployed as soon as its GitHub repository has been connected to Cyclic. Cyclic will use the GitHub default branch (main/master) to pull the repo contents. Every git push or change to the default branch will trigger a Cyclic deployment. This includes direct pushes as well as pull requests.
Note: Cyclic launches your app by calling?npm start, which means you have to have a start command in your?package.json
领英推荐
Limits
Cyclic apps also have?limits ?on capacity and usage.
Their Hard limits are
Other Platforms
There are more free alternatives to Heroku like
Deta
Deta ?is free, forever, it is a free cloud crafted.
Deta Micros(servers) are a lightweight but scalable cloud runtime tied to an HTTP endpoint. Currently only Node.js and Python Micros are supported.
They provide a CLI that ties your local development workflow to your micro cloud, see:?Deta CLI
To deploy your API on Deta, you need to install and configure the Deta CLI, the process is a bit different depending if you’re on Mac, Windows or Linux, so I will leave the?CLI Configuration ?link here for you to check it out.
Railway
Railway ?is a deployment platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
Railway offers a Starter package and 500 hours of usage for free, after that you start to pay for the RAM and CPU which you use, $10 / GB per month and $20 / vCPU per month.
Use the?Railway CLI ?to kickoff a deploy within a service in a project from the command line. The full deployment process on Railway can be found?here .
Fly.io ?also provides free allowances
Resources included for free on all plans:
Check out the?deployment process ?for Node.js apps
Software Developer with EFSET certification
4 个月Unfortunately, Cyclic has been shut down, I didn't have a chance to try it out
Software Developer / Engineer | AI and ML Researcher | AASE @Accenture | Former Intern @Philips | GATE'24
6 个月Thank you for sharing this Hayk Simonyan! It proved very helpful
Dévelopeur expert WEB VUE & NUXT3 - THREEJS - CONFIGURATEURS
6 个月Vercel has a free plan too https://vercel.com/pricing , same principle , connect to github
Growth and Product Marketing at DigitalOcean
7 个月And don't forget DigitalOcean App Platform. The Starter tier is ideal to try App Platform and deploy static sites. You can build and deploy 3 static sites for free and for every additional static site, you would be charged $3.00/month. You also get 1GiB of outbound transfer per month for every static site. https://www.digitalocean.com/pricing/app-platform
Software Engineer | Expert in Frontend Development (JavaScript, React, CSS) | Passionate about Building Solutions
9 个月Thanks, I made it with cyclic ??