The hello_elixir
GitHub app had, over time, drifted into a “that doesn’t work anymore” state. It’s been almost 3 years since we launch the first Elixir app on Fly.io, and so much has changed since then!
The Fly.io CLI (flyctl) does much more now, and the fly launch
command takes you to a webpage for setting up the DB. Oh, and fly launch has Phoenix generate the Dockerfile for you and a new Phoenix app includes dns_cluster
, so it’s clustering out-of-the-box.
This all means getting started smoothly on Fly.io with your Elixir app is easier than ever before.
The other part that needed updating was the documentation on Connecting Observer to Your App in Production.
I created an observer
bash script in the hello_elixir
repo.
Depending on individual setups, there may be a little tweaking needed to your copy of the script and some of those are documented in there and in the documentation.
Give it a try and let me know how it’s working for you!