Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable team members to run dev with a Neon db branch #534

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

gerhard
Copy link
Member

@gerhard gerhard commented Nov 29, 2024

Single command:

just dev-with-neon-branch gerhard-2024-11-29

The above uses a branch that I created on the 29th of November. You can create a new Neon db branch today, using your $USER, with the following command:

just neon-create-branch

This will create e.g. USER-YYYY-MM-DD prod db branch.

Here is a list of all the new commands that go well together:

[team]
dev-with-neon-branch branch                  # Run app in dev mode with $branch
neon-branch-connection branch *ARGS          # Show $branch connection details
neon-branches                                # List prod db branches
neon-create-branch                           # Create a new branch off the prod db

This change also removes the now redundant way of creating Neon db branches.

Follow-up to:


How to use this?

changelog-pr-534.mp4

@gerhard gerhard requested a review from jerodsanto November 29, 2024 08:17
@gerhard gerhard changed the title Enable team members to run dev with a Neon db branch in a single command Enable team members to run dev with a Neon db branch Nov 29, 2024
@gerhard gerhard force-pushed the neon-branch-prod-db branch from 932ae22 to ced3dff Compare November 29, 2024 10:36
Single command:

    just dev-with-neon-branch gerhard-2024-11-29

The above uses a branch that I created on the 29th of November. You can
create a new Neon db branch today, using your `$USER`, with the following
command:

    just neon-create-branch

This will create e.g. `USER-YYYY-MM-DD` prod db branch.

Here is a list of all the new commands that go well together:

    [team]
    dev-with-neon-branch branch                  # Run app in dev mode with $branch
    neon-branch-connection branch *ARGS          # Show $branch connection details
    neon-branches                                # List prod db branches
    neon-create-branch                           # Create a new branch off the prod db

This change also removes the now redundant way of creating Neon db branches.

Follow-up to:
- thechangelog#533
- thechangelog#508

Signed-off-by: Gerhard Lazu <[email protected]>
@gerhard gerhard force-pushed the neon-branch-prod-db branch from ced3dff to d0ce69b Compare November 29, 2024 10:38
@jerodsanto jerodsanto merged commit 7c1500d into thechangelog:master Dec 5, 2024
4 checks passed
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.

2 participants