Hacker News new | ask | show | jobs
by sntran 3253 days ago
Heroku is fine for development. However, it does not work with hot code swapping. There are ways around it, and some people don't believe it's a gain.

There is also https://github.com/hashrocket/gatling that promises the Git push workflow but with hot upgrading capability.

2 comments

Heroku is OK as a deployment platform. Hex powers Erlang/Elixir communities on a small Heroku dyno ($7). And 99% of Elixir developers should not worry about hot code swapping anyway. Let your load balancer or your PaaS take care of it.
Hex runs on 1 small Heroku Dyno? That's amazing.
I believe that's alongside using Fastly for CDN work, which might pick up a majority of the work, I'm not sure.
Any other options? For the small team I work with managing infrastructure is not really an option.
I use docker and docker-compose for sideprojects that don't need zero downtime deploys. Installed on a tiny digital ocean droplet.

A multistage build makes it easy to compile a release on a macOS system and create a minimal alpine docker images with the unpacked .tar.gz release. (My app is an ~84MB docker images)