{
  "$type": "site.standard.document",
  "content": "---\ntitle: \"Deploying a Phoenix app (with LiveView) on fly.io\"\ndescription: \"Quick notes on deploying a Phoenix 1.6 LiveView app to fly.io, including\n  gotchas with health checks and outdated guides.\"\ntags:\n  - dev\n---\n\nThings to note:\n\n- The hexdocs page on [deploying to fly.io](https://hexdocs.pm/phoenix/fly.html)\n  is pretty up-to-date, and in general I followed that (starting with the\n  `mix phx.new --live` part).\n\n- The [fly.io walkthrough guide](https://fly.io/docs/getting-started/elixir/) is\n  currently (as of writing) out-of-date---it suggests and old version of Phoenix\n  (v1.5, whereas the latest is v1.6). The main benefit of v1.6 is the\n  [move to esbuild (and removal of webpack/npm)](https://fly.io/blog/phoenix-moves-to-esbuild-for-assets/),\n  which is quite nice from a developer ergonomics perspective. In addition, some\n  of the \"you need to change your elixir config\" stuff around IPv6 is now no\n  longer needed.\n\n- The default `fly.toml` file which got created for included config for tcp\n  health checks---which are obviously a good idea, but the default phoenix app\n  created above (by `mix phx.new --live` ) doesn't have an endpoint to respond\n  to them afaict (I may be wrong---I don't know enough about how the framework\n  works yet). There's some potentially helpful stuff about enabling them in a\n  [forum post that I found](https://community.fly.io/t/phoenix-http-health-checks/2894/),\n  but as yet I haven't set it up---will update this post asap with more info.\n",
  "createdAt": "2026-05-13T23:14:49.999Z",
  "description": "Quick notes on deploying a Phoenix 1.6 LiveView app to fly.io, including gotchas with health checks and outdated guides.",
  "path": "/blog/2021/10/27/deploying-a-phoenix-app-with-liveview-on-fly-io",
  "publishedAt": "2021-10-27T00:00:00.000Z",
  "site": "at://did:plc:tevykrhi4kibtsipzci76d76/site.standard.publication/self",
  "tags": [
    "dev"
  ],
  "textContent": "Quick notes on deploying a Phoenix 1.6 LiveView app to fly.io, including gotchas with health checks and outdated guides.",
  "title": "Deploying a Phoenix app (with LiveView) on fly.io"
}