How do I run a Phoenix remote console to access IEx in production?

All you have to do is run:

fly ssh console -C "./app/bin/my_app remote"

Where my_app is the name of your Phoenix application as defined in mix.exs:6.

defmodule MyApp.MixProject do
  use Mix.Project

  def project do
    [
      app: :my_app,
1 Like