Phoenix Deployment Handbook (self-published)

Simplify and streamline your Elixir Phoenix Deployments.

Deploy with tools that are easy to use, maximize Elixir’s features, and have exceptional documentation.

Before I deployed my first Elixir Phoenix app to actual users, I was terrified.

  • Wasn’t I supposed to use Docker?
  • What about Releases? When I use releases, it breaks my config?!?
  • I know I’m going to have some bugs once people start using it. How do I get my users to give me a heads up when things don’t work?
  • It’s going to be a pain to push bug fixes because my deployment process is tedious.
  • I need to remember to migrate my database after I deploy.
  • Do I need to deploy and run a separate app just to capture logs?
  • I read you shouldn’t use Elixir Phoenix for your SaaS because the packages and tools aren’t there. Is that what I’m experiencing?
  • Many of these companies with enterprise services don’t say anything about Elixir.
  • Great…I finally picked Heroku, but now I’m reading about all the Elixir features I can’t use
  • How am I going to know if people are using it? What pages are people visiting?
  • Google Analytics is confusing and I don’t feel great about giving Google my users’ data

If you’ve had any of these pains then the Phoenix Deployment Handbook is for you.

  • You’ll learn how to deploy your app with a single command.
  • Then set up Continuous Deployment so deploying changes and migrating your database is as easy as pushing to GitHub.
  • You’ll create a user auth system and makes sure it works correctly with your LiveView app.
  • Your users will be able to reset their passwords via email. And you can use the template to send other emails.
  • With error monitoring, you’ll get notified of bugs and fix them before the user has a chance to tell you about them.
  • When you come across a really difficult bug, you’ll have a log history to pinpoint the exact problem.
  • Finally, you’ll have privacy-preserving Web Analytics with a simple dashboard to help you grow your user base.

I am confident you will save at least 10 hours of research and effortfollowing the steps I outline in the Phoenix Deployment Handbook.

You’re not sure you need it…no worries. If you don’t save over 10 hours following the handbook, I will refund 100% of your purchase.

Buy the Phoenix Deployment Handbook now and use it to deploy and set up the tools for your current project or your next big idea!

Format: PDF

Pages: 100+

Chapters:

  1. Deploy a LiveView app to Fly
  2. Continuous Deployment with GitHub Actions
  3. Authentication with mix phx.gen.auth
  4. Email with Swoosh and Mailgun
  5. Error Monitoring with Honeybadger
  6. Log Management with Logflare
  7. Web Analytics with Plausible

Bonus Chapters:

  1. Best Practices for Elixir Config and Environment Variables
  2. Debugging in Elixir…Beyond IO.inspect/2
  3. What You Need to Know About Logging in Elixir

Attachment:

  1. Quick Reference Guide

I’ve just released the Phoenix Deployment Handbook. It is available for purchase and download. It covers a lot of topics I write about at staknine.com.

In the book you’ll learn how to:

  • Deploy to Fly with two commands
  • Automate deployments when you push to GitHub
  • Set up email delivery, error monitoring, log management, and web analytics

The goal is to save you hours deploying your first app or improving your existing deployment process.

Visit the link below to learn more and download the Quick Reference Guide attachment for free: https://staknine.com/phoenix-deployment-handbook/?utm_source=elixirforum.com&utm_medium=referral&utm_campaign=launch

I started the book on January 2nd, 2022 and posted weekly updates on my progress. The goal was to release the book by the end of January. I ended up releasing the final draft on January 29th. Here is a Twitter thread with my weekly updates.

In terms of writing the book and planning the launch, here were the two main resources I used:

The year of hustle roadmap from stackingthebricks.com for a plan to actually ship it. And a video from Adam Wathan called Nailing Your First Launch.

Let me know if you have questions or feedback!

Jack

16 Likes

Will there be a physical release?

I’m only planning to release the ebook format.

That’s a shame, I’d order a hardcover in a heartbeat.

2 Likes

Thanks for the feedback! I’m going to do some research to see what it would take to offer a hard copy version.

1 Like

The book walks you through deploying a project with continuous deployment then sets up tools like error monitoring and logging.

I recommend following along with your own project. It can be an actual project you’ve been working on or the simple demo app in the book.

1 Like

@jack-s9 Adding this one to my list. Does this book only cover deploying to Fly.io or does it also cover deploying to any random debian/ubuntu/etc VPS?

Trying to get things going on a linode box.

The book only covers Fly. I have a post about using Docker to deploy to a VPS.

It was written before mix phx.gen.release --docker was added (mix phx.gen.release — Phoenix v1.6.12), so you might be able to use that Dockerfile instead of copying the one in the post.

1 Like

Awesome, thanks.

Still looking forward to digging into the book.