You broadly have it right, but it's not "shitty" middleware, despite their problems the actual process of launching an app on Heroku is stellar and was especially groundbreaking 10 years ago. It would provision a server, install dependencies, configure, then launch your app just by pushing a git repository to them.
They were the gold standard for rails deployments back in the day when rails was popular—which was important since rails was actually pretty hard to host on a server compared to say PHP.