I put together a guide on how to deploy Elixir Phoenix to Fly with Continuous Deployment and automated database migrations. It also included Continuous Integration to run tests as you open a pull request and before deploying. It was a follow up to a review of hosting options for Elixir that included Fly.
Wow, that’s great! I updated the article with a note on the new process.
One other question, what log management tool/service do you all recommend to use with Fly? Are there any that you’ve found particularly easy to integrate?
@Mark, if I plan to use Logflare for logs, do you recommend I set up logs with fly-log-shipper or the logflare logger backend? Are there big pros or cons with either choice?
It seems like adding the logflare logger backend package to my Elixir project would be simpler than running another Fly app for logs.
That is if I only plan to send logs to Logflare. If I plan to send logs to multiple providers, then maybe fly-log-shipper would be the better option. What do you think?
@jackgray I don’t have any particular recommendation here. I think it’s fine to experiment here, since log data is usually only diagnostic and changing it isn’t usually an issue. It makes sense to me to try the logflare logger backend for that reason.
I’ve updated my post above to use fly launch for deploying your Phoenix app with one command. Haha, I considered saving the old one to allow you to do a compare and contrast…the new process saves so many steps!