News for hackers. Stuff that matters.
Re:I Miss Heroku's DevEx by kramerger on Thursday May 12, 2022 @03:04AM (#31350178)
But are there any good alternatives to heroku that have a similar approach (i.e. not spinning your own VM) ?
Re:I Miss Heroku's DevEx by striking on Thursday May 12, 2022 @06:50AM (#31352079)
You can get really close by using the one click Dokku deploy on DigitalOcean. Technically it is your own VM, but in practice you just set your git remote to that IP and use it like you would a Heroku instance. It even supports the Heroku build packs!
Re:I Miss Heroku's DevEx by xena on Thursday May 12, 2022 @09:42AM (#31354027)
But then I have to run a server.
Re:I Miss Heroku's DevEx by striking on Thursday May 12, 2022 @11:25AM (#31355531)
Very minimally, sure. You also save a whole pile of money.
Re:I Miss Heroku's DevEx by xena on Thursday May 12, 2022 @11:37AM (#31355701)
The point of Heroku is that I don't have to run a server.
Re:I Miss Heroku's DevEx by rkangel on Friday May 13, 2022 @05:31AM (#31365149)
The blog post we're all commenting describes the point of heroku as to lowering the barrier to entry for deployment. It's about the number of things that you don't have to think about. As a sibling comment says in Google App Engine you also don't have to run a server, but it's much more complicated to use (I ran a startup on it for a while).
Re:I Miss Heroku's DevEx by fknorangesite on Wednesday May 18, 2022 @03:30PM (#31426669)
> The blog post we're all commenting

Was written by the person you are responding to.

Re:I Miss Heroku's DevEx by twic on Thursday May 12, 2022 @05:23AM (#31351305)
That experience is pretty much exactly what Cloud Foundry offers. There are companies offering CF as a service, so very like Heroku, although they're a bit hard to find, because they all rebrand it and roll it into some larger awful cloud offering of their own.

Possibly the most clearly and simply CF-based is from Swisscom:

https://www.swisscom.ch/en/business/enterprise/offer/cloud/c...

Even there, i see no links to getting started docs, or pricing.

Re:I Miss Heroku's DevEx by emilsedgh on Thursday May 12, 2022 @03:28AM (#31350380)
Fly.io, Porter, Render, Google Cloud Run, DO Droplets and probably a bunch I'm forgetting.
Re:I Miss Heroku's DevEx by langsoul-com on Thursday May 12, 2022 @03:39AM (#31350463)
The magic of heroku was everything just worked from a git push, no need to fuck around with Docker and fly.toml files.

Launching laravel app on heroku is magic, git push and done. On render and fly.io? Man I hope you don't suck at Docker cause it took me forever.

Re:I Miss Heroku's DevEx by ryanSrich on Thursday May 12, 2022 @04:23AM (#31350775)
Exactly. Every HN thread that mentions Heroku always has people responding with the same half dozen Heroku competitors. In reality, none of them are comparable. If I have to touch Docker at all then it’s not comparable to Heroku. If I have to configure a service at all. It’s not comparable. If I have to do anything other than click a button to add a database, make that database HA, and make backups automated, then it’s not comparable. If I have to manually manage things like environment variables (for managed services) instead of the system just doing it for me, then it’s not comparable. If I have to deal with complicated role policies, and access management instead of just saying who can and cannot push, then it’s not comparable. If it takes more than clicking a drop down to resize a service, then it’s not comparable. If I have to go to a third party website to add something like monitoring or logging from that third party, then it’s not comparable.
Re:I Miss Heroku's DevEx by jrochkind1 on Thursday May 12, 2022 @12:26PM (#31356362)
Agree. to this day none of them match heroku's magical DX... which makes it more mind-boggling that SalesForce seems to be really intent on just throwing it away.

Render.com seems to be the closest. It's gotten a lot closer in the past two years. And is basically trying to be more or less a clone of heroku, with a few minor update tweaks for how the world has changed (while heroku has not).

Maybe it'll reach it before heroku fully implodes -- although it's hard because so much of heroku is also the ecosystem, that so many third-parties are adding value to heroku too, from add-ons, to just writing documentation for how to integrate their thing with heroku, to external non-approved "add-ons". (If the hirefire.io developer is reading this... hirefire for render?)

Fly.io is also really interesting -- for trying to do something different than heroku, actually much more sophisticated/interesting than heroku, but the trade-off is that it's not really as management-free as heroku, it has seemed to me. (I don't want to write a Dockerfile, nope). But maybe it'll get closer too.

Re:I Miss Heroku's DevEx by joshmanders on Thursday May 12, 2022 @01:26PM (#31357168)
I agree wholeheartedly to all this and honestly, Heroku has been the gold standard I loved for years, and because of the decline had started building my own alternative with the rest...

Biggest differentiator with me and the rest? They focus on "look you can git push to deploy, we're just like Heroku!" while I am all about this DevEx.

So like parent OP said about what is comparable is my goals too.

I hope my product and vision of being "What if we rebuilt Heroku on today's tools with the DevEx?"

You can learn more and sign up for beta at https://primcloud.com

Re:I Miss Heroku's DevEx by ghaff on Thursday May 12, 2022 @07:59AM (#31352703)
You're sort of describing the overall conundrum of the PaaSs starting about 10 years ago. A lot of especially individual developers liked them because, as you say, they were mostly drop-dead simple. The problem is that individual developers mostly don't pay and enterprise app development for good (and bad) reasons has a whole bunch of other requirements which has led a lot of the industry to adopt mostly Kubernetes based container platforms. Which are a lot more powerful and flexible but are also a lot more complex that the original PaaSs envisioned.
Re:I Miss Heroku's DevEx by dham on Thursday May 12, 2022 @08:35AM (#31353103)
> reasons has a whole bunch of other requirements which has led a lot of the industry to adopt mostly Kubernetes

Made up reasons... to support the ponzi scheme of devops to increase salaries

Re:I Miss Heroku's DevEx by darkwater on Thursday May 12, 2022 @12:08PM (#31356142)
Or maybe because there are applications out there that are bigger and more complex than your typical side-project o SaaS with a thousand users that you deploy in Heroku.
Re:I Miss Heroku's DevEx by dham on Thursday May 12, 2022 @12:45PM (#31356574)
They're only complex because developers want to make them complex. It's not a demand from the user.
Re:I Miss Heroku's DevEx by Matl on Thursday May 12, 2022 @01:23PM (#31357116)
> They're only complex because developers want to make them complex.

I get your frustration but have to disagree; solutions like k8s exists because users, (often internal users mind you), expect things like rollouts of features several times a day, horizontal scalability etc.

I know there's a mantra on HN of let's go back to how things were in '95 and in some ways I'd love that but it just doesn't seem possible. You have to remember most devs just want to get their tickets done, they don't want to make anything complex if they can avoid it.

That being said if there's certain trends, (hardly set by your average developer), you have to go with at least some of it if you want to remain 'marketable' unfortunately.

Re:I Miss Heroku's DevEx by dham on Thursday May 12, 2022 @01:42PM (#31357457)
I worked at a company that served 3 million MAU, deployed 30 times a day with PHP and a 4 TB Mysql database. Most of these tools are for companies like Twitter and Google. 99.9% of companies will never need them. The problems are made up, end of story.
Re:I Miss Heroku's DevEx by Matl on Thursday May 12, 2022 @02:03PM (#31357797)
I appreciate anecdotes as much as the next person but you're not responding to what I actually wrote; I am simply saying that it is not in the hands of most developers to use/not use these tools. They get no choice. Therefore blaming them is misplaced.

Most developers also don't think they're working at the next Google. There's a different group within many software companies that likes to think so, usually not your ICs.

Re:I Miss Heroku's DevEx by JohnBooty on Thursday May 12, 2022 @10:31PM (#31362606)

    Most developers also don't think they're working 
    at the next Google. There's a different group within 
    many software companies that likes to think so, usually 
    not your ICs. 
In the past ten years, I've worked at three companies with dozens of developers.

I don't know if they "think they're working at the next Google", but I would say they have close to literally no conception of "performance" that doesn't mean "scaling out" to hilariously overcomplicated architectures that serve mainly to pump metric tons of money into AWS' coffers.

I worked at a company that thought you needed a Redis cluster because Performance Reasons. And they paid AWS handsomely for that belief.

What were we storing in Redis, you ask? Literally kilobytes of ephemeral data (cached values, etc).

A cluster. For kilobytes.

Obviously most examples aren't that nutty, but this kind of thinking has poisoned a whole generation of developers. It's not their money, so who cares about the AWS bill? Fuck hunting for missing indexes in the database, they just spin up a new server. It makes them look better to management because they're "getting things done" and management isn't tech-savvy enough to know otherwise.

And these aren't morons. These are talented people who are also kicking legitimate butt in many cases.

Re:I Miss Heroku's DevEx by anurag on Thursday May 12, 2022 @02:18PM (#31358044)
(Render founder) agreed and great feedback. We're working hard to get there.
Re:I Miss Heroku's DevEx by mrkurt on Thursday May 12, 2022 @09:30AM (#31353863)
You are correct about Laravel apps, but there's some nuance here. The Heroku magic only worked for Rails in the early days. We (Fly.io) have a similar experience for Phoenix, Rails and Remix apps. We don't have magic for Laravel yet (soon: https://fly.io/jobs/laravel-specialist/).

Docker images are a way for people to run anything they want on Fly.io. You probably won't need them on one of our happy path frameworks.

Re:I Miss Heroku's DevEx by ATsch on Thursday May 12, 2022 @07:29AM (#31352407)
I'm personally happy to mess around with docker for an hour once if it lets me save 50%+ on running it.

It's true that Heroku has a better experience, but that doesn't matter if the NRE for making it work on a cheaper platform is recouped after barely a month. I think the fact that these services are able to be successful despite having a worse experience shows how uncompetitive Heroku's pricing is.

Re:I Miss Heroku's DevEx by anurag on Thursday May 12, 2022 @02:16PM (#31358009)
(I work at Render) You don't need to use Docker to run your app on Render. Just a build command or script which can do anything (e.g. `npm build`) unlike buildpacks which force you into a specific way of doing things.

If you've tried Render without Docker and it still took you forever, that's a bug we'd love to fix if you can email me (in profile).

Re:I Miss Heroku's DevEx by nicoburns on Thursday May 12, 2022 @07:36AM (#31352465)
Heroku requires a Heroku.yml, no? Seems pretty comparable to me.
Re:I Miss Heroku's DevEx by Fradow on Thursday May 12, 2022 @11:34AM (#31355665)
It doesn't, no. I don't even know what that is (well a quick look at the documentation: it's about Docker, which is not needed for Heroku).

All it requires is a Procfile, which can contain a single line telling how to start your server and that you can extend to add other process types. It's not even needed for simple apps.

Re:I Miss Heroku's DevEx by yunwal on Thursday May 12, 2022 @01:53PM (#31357642)
Genuine question, is a Procfile really that preferable to a Dockerfile with equivalent functionality?

> cmd: python helloworld.py

doesn't seem massively less complicated than

FROM alpine CMD ["python", "helloworld.py"]

FWIW, I've never used heroku in production so maybe it's more about the constraints of heroku than the number of words, but it just doesn't seem like a huge deal to me.

Re:I Miss Heroku's DevEx by ek750 on Thursday May 12, 2022 @07:13PM (#31361220)
I'm familiar with docker but certainly not an expert, so this is surprising to me. Is it really possible to have a single line dockerfile?

The smallest one I've used was probably a screen full, due to updating packages, setting up bundler paths, etc. A production dockerfile is much larger with non-root user shenanigans, etc.

But to answer your question about Heroku, a Procfile is much smaller and more constrained in scope than a Dockerfile.

Re:I Miss Heroku's DevEx by girvo on Thursday May 12, 2022 @10:55PM (#31362754)
> I'm familiar with docker but certainly not an expert, so this is surprising to me. Is it really possible to have a single line dockerfile?

Not single line, but two lines, sure. Though you're at the mercy of your upstream image and how it configures things. Though I guess that's also true of buildpacks.

Plenty of my Dockerfiles are no more than a couple lines.

Heroku was still nicer in most ways of course, at least in my opinion.

Re:I Miss Heroku's DevEx by Fradow on Friday May 13, 2022 @03:53AM (#31364584)
Since I've never used Docker, I can't answer.

A Procfile works well with what you'd want to do on Heroku: run a webserver, and maybe run some other worker process. It's a single line per process, equivalent to what you run locally.

Re:I Miss Heroku's DevEx by xena on Thursday May 12, 2022 @07:40AM (#31352502)
It used to not to. Before the heroku.yml file it did most of the things with either auto detection of build packs and implicit procfile generation. You could git push a vanilla rails app and it would just work. It was magical before then.
Re:I Miss Heroku's DevEx by jrochkind1 on Thursday May 12, 2022 @12:28PM (#31356383)
Still is. I don't use a `heroku.yml`. That appears to be an alternate available path, I don't know how many heroku customers use it.
Re:I Miss Heroku's DevEx by ryanSrich on Thursday May 12, 2022 @04:17AM (#31350737)
For anyone reading, none of these are comparable to Heroku. Yes, it’s a server in the cloud that can host your app. Heroku does much much more than that. I never want to think about DevOps or infrastructure. Like literally ever. I want to click a button and have everything work. That’s the power of Heroku. I don’t see any other product that does this 100% of the time like Heroku does.
Re:I Miss Heroku's DevEx by iviv on Thursday May 12, 2022 @05:47AM (#31351496)
I think Render is close to this?
Re:I Miss Heroku's DevEx by bpicolo on Thursday May 12, 2022 @08:26AM (#31352990)
Cloud run has been nice, but I really wish I could get a shell in a container in the same environment as my app. The “jobs” feature they’re launching seem like it will help for some use cases of this but having a shell for debugging is something I miss.
Re:I Miss Heroku's DevEx by skrtskrt on Thursday May 12, 2022 @10:03AM (#31354360)
DO App Platform would be the competition, Droplets are just bare VMs
Re:I Miss Heroku's DevEx by quickthrower2 on Thursday May 12, 2022 @06:34AM (#31351906)
Im doing a project in Vercel (NextJS ) and Firebase and once you get used to the recent Firebase api changes (they are fine but makes searching for answers harder) it is a fairly ok MVPing solution. You can go a long way for $0
Re:I Miss Heroku's DevEx by password4321 on Thursday May 12, 2022 @07:58AM (#31352697)
https://appharbor.com for .NET (though not many recent signs of life).
Re:I Miss Heroku's DevEx by lloeki on Thursday May 12, 2022 @09:38AM (#31353960)
Scalingo is mostly a clone with some twists

https://scalingo.com/