-
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 replace changelog_dev with a prod db dump (#533)
* Enable team members to replace changelog_dev with a prod db dump There is a single command to run: just restore-dev-db-from-prod This implies that: - direnv.net is hooked into the shell -`just envrc-secrets` has already run & `.envrc.secrets` exists - Posgres 16 has been installed using `just postgres` Part of this change we exposed a few more private recipes and made it clear who they are meant for: - `contributor` means anyone that wants to play with this repo locally - `team` means Adam, Jerod & Gerhard We also added `just add-oban-pro-repo` so that we make this integration easier for team members - I always forget about it! Signed-off-by: Gerhard Lazu <[email protected]> * Go back to managing Postgres with asdf Single tool to rule them all ✊ icu4c seems to be working on macOS 14.7 ARM now. Checked that the new command works as expected. Also confirmed that CI works locally. Also run: npx browserslist@latest --update-db Signed-off-by: Gerhard Lazu <[email protected]> --------- Signed-off-by: Gerhard Lazu <[email protected]>
- Loading branch information
Showing
9 changed files
with
112 additions
and
67 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Required for image publishing to work locally | ||
export GITHUB_REPOSITORY="thechangelog/changelog.com" | ||
export GITHUB_REF_NAME="master" | ||
export IMAGE_OWNER=thechangelog | ||
export GHCR_USERNAME=$USER | ||
|
||
# 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 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 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 |
---|---|---|
|
@@ -7,3 +7,4 @@ flyctl 0.2.65 | |
golang 1.22.4 | ||
nodejs 20.14.0 | ||
yarn 1.22.22 | ||
postgres 16.5 |
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 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 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export OBAN_KEY_FINGERPRINT="op://changelog/oban/key_fingerprint" | ||
export OBAN_LICENSE_KEY="op://changelog/oban/license_key" | ||
|
||
# Required for deploys to work locally | ||
export FLY_API_TOKEN="$(flyctl auth token)" | ||
|
||
# Required for image publishing to work locally | ||
export GHCR_PASSWORD="op://changelog/ghcr/credential" | ||
|
||
# Required for db sync to work locally | ||
export DB_PROD_HOST="op://changelog/neon/server" | ||
export DB_PROD_USERNAME="op://changelog/neon/username" | ||
export DB_PROD_DBNAME="op://changelog/neon/database" |
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 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