Add Claude Code bootstrap configuration and setup script#58
Merged
Conversation
- Add scripts/bootstrap.sh to set up development environment: - Starts PostgreSQL and Redis services - Creates bun and bun-test databases - Installs dependencies with bun - Copies .env.example files if needed - Exports environment variables for the session - Add .claude/settings.json with SessionStart hook configuration that runs bootstrap.sh on both startup and resume This enables Claude Code in the cloud to run tests and boot the server without requiring Docker. https://claude.ai/code/session_01AHDskyzDT97ySQfpVmoKpQ
Check CLAUDE_CODE_REMOTE environment variable and exit early if not set to "true". This prevents the bootstrap script from running on local machines where docker compose is used instead. https://claude.ai/code/session_01AHDskyzDT97ySQfpVmoKpQ
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
This PR adds automatic environment setup for the bun-actionhero project when running in Claude Code's cloud environment. It includes a SessionStart hook configuration and a comprehensive bootstrap script that initializes all required services and dependencies.
Changes
.claude/settings.json(new): Adds Claude Code hook configuration that automatically runs the bootstrap script on session startup and resumescripts/bootstrap.sh(new): Comprehensive bootstrap script that:bunandbun-test).env.exampletemplatesImplementation Details
CLAUDE_ENV_FILEfor the entire sessionBenefits
https://claude.ai/code/session_01AHDskyzDT97ySQfpVmoKpQ