Skip to content

Conversation

d-led
Copy link

@d-led d-led commented May 22, 2025

Change Summary

What and Why:

Problem:

  • when launching a fresh phoenix app that wasn't yet deployed in docker, sensible default files are generated
  • the defaults are valid for fly.io but e.g. not for local docker compose set up, where there's no ipv6
  • trying to get (auto-)clustering right might frustrate users with phoenix and elixir. Since developer happiness is writ large, this frustration might be averted
  • I've fixed this before but forgot I did → re-work, same debugging session

How:

  • generate a sensible env.sh.eex that will work both with libcluster in docker compose and with dns_cluster on fly.io

Related to:

  • there are some defaults generated by phx.new that could be improved (will gladly follow up with the worked out patterns)

Documentation

  • Fresh Produce
  • In superfly/docs, or asked for help from docs team
  • n/a

@d-led d-led marked this pull request as ready for review May 22, 2025 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant