4 ms·
Any best practice guides for running Elixir in production? How do you handle deployments, hotfixes, multi-node scaling, etc. in an automated way?
by biot 10y ago
Any best practice guides for running Elixir in production? How do you handle deployments, hotfixes, multi-node scaling, etc. in an automated way?
- bratsche 10y agoThis doesn't answer all of your questions, but it was the fastest way I found to get an Elixir app into production: https://github.com/boldpoker/edeliver https://github.com/boldpoker/edeliver It handles all the basic things I needed to get an app up and running, and supports hot-code upgrades. It supports multi-host deployments, but I think if you want auto-scaling you'll need to do some more work. One thing to be aware of is that if you're deploying any NIFs or any native-compiled code, not BEAM, then you can't deploy directly from Mac to Linux servers, you'll need to use VMware or VirtualBox or something to actually do the builds. This includes any packages you use which are using natively-implemented code, which I'm pretty sure includes packages that do password hashing and such.
- biot 10y agoThank you. I hadn't run across that... it looks amazing.
- sbrother 10y agoWe have a small React/Elixir/Phoenix webapp in production, and we deploy it using https://github.com/bitwalker/exrm https://github.com/bitwalker/exrm, https://www.go.cd/ https://www.go.cd/, and https://saltstack.com/ https://saltstack.com/. I'm not the devops guy myself so I don't fully understand how much work was involved in getting all this set up, but I am extremely pleased with the results!