-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable team members to run dev with a Neon db branch (#534)
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: - #533 - #508 Signed-off-by: Gerhard Lazu <[email protected]>
- Loading branch information
Showing
14 changed files
with
114 additions
and
306 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
# Required for op to know which account to use | ||
export OP_ACCOUNT=changelog.1password.com | ||
|
||
# Required for image publishing to work locally | ||
export GITHUB_REPOSITORY="thechangelog/changelog.com" | ||
export GITHUB_REF_NAME="master" | ||
export GITHUB_REPOSITORY=thechangelog/changelog.com | ||
export GITHUB_REF_NAME=master | ||
export IMAGE_OWNER=thechangelog | ||
export GHCR_USERNAME=$USER | ||
|
||
# Required for Postgres imports to work locally | ||
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH | ||
export PGUSER=postgres | ||
export DB_USER=$PGUSER | ||
export CHANGELOG_DEV_DB=changelog_dev | ||
|
||
# Load secrets if configured - only available to changelog.com team members: | ||
# https://github.com/orgs/thechangelog/people | ||
source_env_if_exists .envrc.secrets |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.