Repository navigation
Use Managed Postgres in the Phoenix getting started guide - #2672
Open
alexleventer wants to merge 2 commits into
Open
alexleventer wants to merge 2 commits into
alexleventer wants to merge 2 commits into
Conversation
The guide told readers to pick Fly Postgres and showed an unmanaged postgres-flex cluster being created. It now runs fly launch --db=mpg and trims the sample output.
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claude (Claude Code) wrote this change from an agent-readiness review.
Summary of changes
Deploy a Phoenix App told readers to select Fly Postgres in the launch UI and showed an unmanaged
postgres-flexcluster being created. Agents reading this guide create an unmanaged cluster instead of Managed Postgres.fly launch --db=mpg. In flyctl v0.5.14 (internal/command/launch/plan/postgres.go),--db=mpgplans a Managed Postgres cluster on the Basic plan, offers to switch region if the current one has no MPG, thenlaunch_databases.gowaits for it and setsDATABASE_URL.Visit your newly deployed app at ..., frominternal/command/deploy/deploy.go).Fly.Billing.FreePlan.check_managed_postgres/4), so they runfly launch --no-db --no-deploy, create a Developer cluster withfly mpg create,fly mpg attachit, thenfly deploy. Without--no-deploy, launch carries on after the failed create and deploys with noDATABASE_URL.fly status -a <db app>forfly mpg status, drop the "note your Postgres credentials" note, and fix the recap sentence.Preview
https://docs.fly.io/elixir/getting-started/ (after merge)
Related Fly.io community and GitHub links
Notes
fly launch(no--db) picks Managed Postgres only when a LaunchDarkly flag is on and the session is interactive; otherwise it falls back to unmanaged with a deprecation warning. The web launch page's Postgres options are also flag-gated (launch-postgres-choice). I couldn't see either flag's value, so the guide uses--db=mpg, which doesn't depend on them.postgres/guides-examples/phoenix-guide.mdxalready covers Managed Postgres (PgBouncer mode, migrations, Oban) and has no launch walkthrough, so it's unchanged.dev-256is hidden from the plan prompt and the API offers it only to orgs with its flag (internal/command/mpg/plans.go), so whether a Free reader sees the Developer plan infly mpg createdepends on that flag. I didn't run the Free path.