TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What should I use instead of Heroku?

82 pointsby slowwriterabout 3 years ago
Recent events have made me realize I should at least consider switching away from Heroku.<p>I run a handful of small PHP apps with Redis and Postgres as add-ons. Max 5 Standard 1X dynos per app.<p>I want strong GitHub integration and would also like the replacement to be Docker-based.<p>I imagine there are tons of developers like me out there. And it seems like there are many options. Which ones would you recommend?

26 comments

zoomzoomabout 3 years ago
Heroku alternatives have gone in a few different directions: - next-gen PasS that are more opinionated and offer wider range of services. Also can be cheaper. examples are Digital ocean, Railway or render - Performance-focused PaaS like fly.io - &quot;Heroku in your own cloud&quot; like porter.dev, architect.io or quovery - k8s tooling like garden.io, ReleaseHub, even gitlab - these are often geared more towards internal DevOps teams at larger orgs when compared to the very low-lift PasS providers - serverless providers - like cloudflare functions, AWS lambda, GCP Cloud Run - Vercel&#x2F;Netlify - SPA + serverless with a great developer experience - Replit - kind of in a category of their own but they have integrated hosting&#x2F;datastores&#x2F;user auth<p>Lots of awesome products here, I&#x27;d argue that only replit is a true 10x change from the Heroku innovations in terms of providing a next-gen developer experience.<p>I&#x27;m the cofounder of a new company called Coherence, that we think creates a new direction and offers a better platform for the next leap forward. By integrating from dev to prod and capturing the whole SDLC, as well as by operating in your own cloud, we&#x27;re focused on delivering the best developer experience possible, without compromising anywhere else. For example, by not building 100% on k8s we’re able to offer Cloud Run on GCP or App Runner on AWS, which are “free-tier” friendly without the fixed costs of the k8s baseline infra that other “in your own cloud” providers have. Check us out at <a href="https:&#x2F;&#x2F;www.withcoherence.com" rel="nofollow">https:&#x2F;&#x2F;www.withcoherence.com</a>. We&#x27;re in an early closed beta so not yet a fit for all teams, but feedback is welcome!
评论 #31294250 未加载
nnfabout 3 years ago
I know it’s not shiny and new, but we use AWS Elastic Beanstalk, which automates everything but still gives us full control over the EC2 instances if we need it. It has built-in support for Docker, PHP, and several others. We use AWS’s managed databases (RDS&#x2F;Aurora) and Redis (ElastiCache) with automatic failover, and both have been solid in the three years we’ve been on this setup.
TekMolabout 3 years ago
Why not just use a $10&#x2F;month bare bones virtual machine?<p>I just use plain Debian, copy my stuff over via rsync and everything works fine.<p>The machine gets something like 10k users on a normal day. In the past, it occasionally handled 30x that.
评论 #31293845 未加载
评论 #31294079 未加载
评论 #31293901 未加载
_sabout 3 years ago
I absolutely adore <a href="https:&#x2F;&#x2F;www.glitch.com" rel="nofollow">https:&#x2F;&#x2F;www.glitch.com</a> for low traffic, small and simple apps. It’s Joel Spolsky’s project; and he’s got Trello, StackOverflow and FogBugz as his previous companies (Fog Creek I think?). Give it a whirl!<p>I think you can run PHP on there now too; see <a href="https:&#x2F;&#x2F;glitch.com&#x2F;edit&#x2F;#!&#x2F;php-poc" rel="nofollow">https:&#x2F;&#x2F;glitch.com&#x2F;edit&#x2F;#!&#x2F;php-poc</a><p>For even simpler (static JS&#x2F;HTML), I just publish on GitLab or GitHub pages.
Handfishabout 3 years ago
I recommend Caprover. It&#x27;s a simple container environment that hosts your services via sensible nginx configurations and Docker swarm, has a cli tool that can be utilized for CI purposes, and provides easy spin-up for common OSS web-apps.<p>I utilize it to host many different PHP and Java apps.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;caprover&#x2F;caprover" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;caprover&#x2F;caprover</a>
评论 #31294125 未加载
tpetryabout 3 years ago
Nowadays render.com and fly.io are the most promising alternatives.
评论 #31293695 未加载
评论 #31294089 未加载
评论 #31293914 未加载
the_third_waveabout 3 years ago
Your own server running on your own connection, running off a(n extra) solar panel on your roof which you use to charge a biggish UPS - enough for keeping it alive through the night. If a SBC like a Raspberry Pi is sufficient (and that&#x27;s what your description sounds like) use something like that, alternatively get something bigger. A single 450W (1x2 meters) solar panel is enough for a lot of computing. Judging by what you describe it should be quite easy to rig up a workflow using standard components which fits your bill, no need for trendy technologies which are sure to be deprecated in a few years when the new trendy thing takes up its place for a year or two in the limelight. Set the thing to automatically fetch and install security updates, only expose web and SSH on a non-standard port (add port knocking if you feel like taking that extra step) and you&#x27;re set for a long time.<p>Running your own services is not hard, no matter what naysayers tell you. Just give it a try, start small as described a RasPi uses a few watts so you won&#x27;t even need that solar system here.
评论 #31308464 未加载
rgrmrtsabout 3 years ago
I know others have suggested this too but <a href="https:&#x2F;&#x2F;fly.io" rel="nofollow">https:&#x2F;&#x2F;fly.io</a> is great! Very generous free tier, and it feels as magical as Heroku did when I first used it years ago.<p>I’ve worked as an SRE and do a fair amount of infrastructure work at my job, so I’ve had periods of time where I ran my own k8s cluster for side projects and more recently ran a nomad cluster. The big caveat here is I enjoyed doing this and it helped my career experimenting with infra in my free time before suggesting it internally. I’ve also had bare metal servers and some of the whole classic fabulous monolith thing which is its own beast.<p>All that said, if you just want some small easy to use compute with little maintenance definitely give Fly a try! (Not affiliated, just a happy new customer)
pbowyerabout 3 years ago
For PHP <a href="https:&#x2F;&#x2F;platform.sh" rel="nofollow">https:&#x2F;&#x2F;platform.sh</a> has got a lot of traction, but it&#x27;s notc cheap especially for small apps.<p>If you hadn&#x27;t wanted the Docker-based backing I would suggest trying one of the services that automates setting up your VMs at AWS, DigitalOcean, Linode etc like <a href="https:&#x2F;&#x2F;forge.laravel.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;forge.laravel.com&#x2F;</a>, <a href="https:&#x2F;&#x2F;runcloud.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;runcloud.io&#x2F;</a>, <a href="https:&#x2F;&#x2F;serverpilot.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;serverpilot.io&#x2F;</a>, <a href="https:&#x2F;&#x2F;www.cloudways.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.cloudways.com&#x2F;</a> etc
fidrelityabout 3 years ago
Give render.com a try. I used it for our latest startup and it was overall a pleasant experience.<p>For me it&#x27;s the sweet spot between Heroku and AWS.
评论 #31294068 未加载
评论 #31294105 未加载
abrookewoodabout 3 years ago
Don&#x27;t have specifics, but Azure gives you something like $70 a month free for ever - might be able to run your stuff there for less. Oracle also has something similar - a few VMs free forever that would probably suffice.
nicoburnsabout 3 years ago
Fly.io seems like it might be a good fit. They support Docker + Postgres (they recommend just running Redis in Docker and have instructions for how to do this). And they provide a Github Action for deployment.
评论 #31293922 未加载
kinosabout 3 years ago
Get a generic server and toss dokku on it.
ualloabout 3 years ago
I&#x27;m in a similar boat. Except I do <i>not</i> want any GitHub integration and would rather not use Docker. I have simple needs and don&#x27;t want to manage a server. To me, it is rather strange that there are so few providers that allow pushing code <i>without</i> GitHub&#x2F;GitLab&#x2F;Git. Allow me to upload a tar (or similar) and I&#x27;m happy.<p>Any recommendations for two small Node.js applications?
评论 #31293924 未加载
memsetabout 3 years ago
For long running tasks (cron jobs, message queues, fire and forget) I’m the cofounder of <a href="https:&#x2F;&#x2F;www.tasker.sh" rel="nofollow">https:&#x2F;&#x2F;www.tasker.sh</a>, YC S21.<p>Feel free to ping me: jay@tasker.sh, happy to personally help onboard and toss in some credits if you’d be willing to chat with us about what you’re building!
评论 #31293999 未加载
评论 #31294044 未加载
ksajadiabout 3 years ago
I’d start answering this question by asking “why do you want to leave heroku”.<p>If as you’re stating, the recent security issues are the main reason, I am pretty sure you’re not going to find a better solution by switching. Any vendor or internal ops team is going to have vulnerabilities. Thinking security issues are limited to Heroku is not logical.<p>However you might object to the way they handled the security issues. I totally agree with that being a good reason, not because of this specific incident, but because in my opinion, this is a sign of bigger issues at heroku. In short Heroku has been stale from a product point of view and has lost a lot of good talent to deal with product and operational needs they have.<p>To me, replacing one PaaS with another is not a good idea. All PaaS providers suffer from the same fundamental issues of rigidity (you work around their limitations and not the other way around), price (they can’t transfer commoditisation of the cloud to their customers), and vendor risk (single vendor that can be bought and shut down by the buyer - remember AppFog or Tutum? - or at least lock you in)<p>Doing it yourself is also not a very wise choice for a lot of people: you either need a devops and SRE team or you’re left copy pasting scripts from across the internet to build and configure your servers.<p>Alternatively you’re pressed to learn a new tech (kubernetes, dokku, et al) and spend your time on that instead of your app.<p>I’m a proponent of a middle ground: vendors that take care of devops for you, the way your team would have done so, without the inhibitive costs. Consultancies are one option but they can build something for you at a cost and then you’re left with either keeping them around to maintain it to stuck with a tech stack you can’t manipulate yourself.<p>Companies like Cloud 66 or any other ones that build and maintain a PaaS like experience on your own servers without their own complex magic are the best ones out there in my opinion.<p>I’m biased towards Cloud 66 as a founder, but we built it not to build another PaaS, but to try to address the actual question of why everyone starts with heroku and no one seems to stay on it for long.
bobx11about 3 years ago
Digital Ocean has a buildpack based system and is pretty darn nice.
评论 #31302361 未加载
nsainaneyabout 3 years ago
You may want to consider vanilla kubernetes and <a href="https:&#x2F;&#x2F;codezero.io" rel="nofollow">https:&#x2F;&#x2F;codezero.io</a> for the development part of the SDLC. Also, here are some considerations when taking a platform based vs tools set based approach to the whole SDLC <a href="https:&#x2F;&#x2F;blog.codezero.io&#x2F;5-myths-of-kubernetes&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.codezero.io&#x2F;5-myths-of-kubernetes&#x2F;</a>
jjiceabout 3 years ago
AWS elastic beanstalk. Works with docker and handles running and scaling your app for the raw cost of the EC2 underneath. It&#x27;s essentially heroku on AWS.
kasia66about 3 years ago
Have a look at cloud66.com It takes a different approach to the problem: it creates an environment like Heroku but on your servers on any cloud. This creates many benefits, including persistent storage and support for all available regions of your cloud provider of choice. But it also makes a big difference in availability: your application is not dependent on Cloud 66’s availability and won’t go down.
eric4smithabout 3 years ago
Look into running Dokku.<p>Simple and easy and we use it for a LOT of things. It does not tie you into dokku itself and you can manipulate everything yourself with docker and nginx.<p>Dokku is merely an easy interface on top of the OS.<p>It’s really not hard. Read the docs and you will be up and running pretty quickly.<p>Then it’s just a simple “gut push dokku master” to deploy your apps.
ssaunier_about 3 years ago
Scalingo is a great European-based Heroku alternative, reusing the buildpacks and 12factor approach, it’s very easy to migrate to!<p>We did: <a href="https:&#x2F;&#x2F;scalingo.com&#x2F;customers&#x2F;le-wagon" rel="nofollow">https:&#x2F;&#x2F;scalingo.com&#x2F;customers&#x2F;le-wagon</a>
Saphyelabout 3 years ago
I have similar question. I use mainly webapps but I deploy a container image... I&#x27;d like to find something similar and free but european if possible?
antiheroabout 3 years ago
There’s always rolling your own BOSH+CloudFoundry, but that be a bit heavy for your idea case. How about playing with microk8s and seeing if it works for you?
评论 #31296022 未加载
lvl102about 3 years ago
Not a straight alternative but I use Firebase for a lot of “small” projects.
MorganGallantabout 3 years ago
Been a long-time fan of Railway (<a href="https:&#x2F;&#x2F;railway.app" rel="nofollow">https:&#x2F;&#x2F;railway.app</a>) — seems like it would be a great option here.<p>If you wanna see pure magic, CMD+K —&gt; PostgreSQL (or Redis). ~3s and you’re good to go.