When comparing Heroku vs Surge, the Slant community recommends Heroku for most people. In the question“What are the best website hosting providers?” Heroku is ranked 4th while Surge is ranked 15th. The most important reason people chose Heroku is:
Getting started with Heroku is very easy. It's a very straightforward procedure and a beginner can set up their first app in two minutes. Often it's just a matter of a couple of `git` commands and it's all set up and running. The official Heroku [docmentation](https://devcenter.heroku.com/) also helps a lot.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Easy to start with
Getting started with Heroku is very easy. It's a very straightforward procedure and a beginner can set up their first app in two minutes. Often it's just a matter of a couple of git
commands and it's all set up and running. The official Heroku docmentation also helps a lot.
Pro Excellent error logs
When your deploy fails you see a legitimate error log. Many of the other PaaS give you nondescript messages and debugging is a pain. Debugging Heroku wins by comparison.
Pro Add-ons let you easily add features and technologies
Heroku has a vast list of plugins and services that can be added to an instance. These plugins cover things from databases to email systems. This remove the task of having to install services and setting them up manually. Heroku does it all for you.
Pro Simple scaling
Heroku instances can easily be scaled up or down by increasing or decreasing the number of available dynos for that instance. This can be done through the CLI or through Heroku's web UI.
Pro Dedicated build servers
Heroku has dedicated servers for building app dependencies, to ensure that you won't have issues like "out of memory" errors when deploying your app.
Pro Mature
Heroku is one of the oldest PaaS providers. The fact that it's been around for such a long time means that it had a lot of time to mature over the years. There's also a massive number of articles, guides and tutorials on Heroku out there for beginners and advanced users.
Pro Free option
Heroku offers a free tier which contains a single dyno instance. It offers 512MB of memory and 100MB swap space.
Pro Free Tier
Unlimited projects, deployments, and collaborators in free tier which also includes basic SSL. Pro options for those who need it cost $13/month (or all you can eat top tier at $30/mo) which gives you auto-provisioning SSL certificates on custom domains.
Pro Automatic Clean URLS
/page resolves /page.html
Pro Custom 404.html files
Catch-all 200.html files.
Pro Six Keystrokes to publish site
Type surge and hit enter in your project directory to deploy.
Pro pushState support for single page apps
Great for front ends like React and Vue.
Pro Automatic Gziping
Auto gzips and sends gziped files.
Pro Supports Jekyll and Grunt and other CIs
Pro Far-future expire headers
Pro Support on Slack
Live Chat Support.
Pro ent (intelligently) about trailing slashes (“/”)
Pro Fully featured CLI tool
Provides a CLI tool to easily deploy using terminal with surge
command.
Pro Atomic Deploys
Deployments are fast, instant, and atomic - with zero chance of collisions.
Cons
Con Constrained by addons
If you want to fully customize your production environment, then Heroku can be seriously constraining. Installing libraries or services can not be done unless there is already a Heroku plugin for it.
Con Further deployments are slow
While starting with Heroku is fast and easy, and the first few deployments are actually very fast, larger applications tend to have slower deployments. It takes some time for the dynos to restart and while they are restarting the application is completely offline. Which means that you can lose precious seconds of application time.
Con Really expensive
Heroku starts getting really expensive once you leave that free tier. It's not just the bare Heroku service that is costly, the addons as well are very pricey.
Con Does not support .pdf by default
Does not support .pdf. To get PDF support you have to add a credit card by running surge card
(though no charges apply).
