Conversation
- Install PostgreSQL 17 client to match server version - Uses official PostgreSQL APT repository - Fixes pg_dump version mismatch error
- Simplifies artifact upload using official GitHub Action - More reliable than direct API calls - Maintains same functionality with cleaner implementation
- Use pg_dump custom format (.dump) instead of plain SQL - Add rake db:fetch_and_restore to download and restore latest dump - Add rake db:restore to restore from a specific dump file - Add rake db:list_dumps to list available dump artifacts - Requires GITHUB_TOKEN or GITHUB_PAT environment variable
- Replace deprecated apt-key with signed-by keyring method - Add GitHub Actions cache for PostgreSQL client installation - Cache will speed up subsequent workflow runs
- Rake tasks no longer require GITHUB_TOKEN for public repositories - Handle redirect when downloading artifacts - Add better error messages for expired/private artifacts
- Document database restore process for new developers - Explain weekly backup schedule and retention - Include quick start commands for fetching production data - Note PostgreSQL version requirements
- Switch to gh CLI for downloading artifacts - Add prerequisite check for gh installation - Update documentation to reflect gh CLI requirement - GitHub API requires authentication even for public repos
- Use gpg --dearmor to convert ASCII armored key to binary format - Add gnupg package dependency - Create keyrings directory if missing - Fixes 'NO_PUBKEY' error during apt update
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.
Summary
Features
Automated Database Dumps
Restore Functionality
rake db:list_dumps- Lists available database dump artifactsrake db:fetch_and_restore- Downloads and restores latest dumprake db:restore[dump_file]- Restores from a specific dump fileTechnical Details
Setup Required
DATABASE_URLsecret in repository settings for production database accessgh) installed and authenticatedTest Plan
rake db:fetch_and_restore🤖 Generated with Claude Code