Make Capital Command Center deploy-ready for Railway/Render - #5
Draft
bfricano wants to merge 1 commit into
Draft
Conversation
- Dockerfile (php:8.3-cli-alpine) honoring the PORT env var - render.yaml blueprint with a persistent 1 GB disk at /app/data so the SQLite database survives redeploys - Optional HTTP Basic auth gate: set APP_PASSWORD to require a password on hosted deployments; unset keeps local dev open - README deployment instructions for both platforms Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SxGuNyBj2mK5Vzu8ccthjw
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
Follow-up to #4: makes the Capital Command Center one-click deployable on Railway or Render while keeping the PHP + SQLite app fully intact.
Changes
CreditCommandCenter/Dockerfile—php:8.3-cli-alpineimage (pdo_sqlite is bundled), honors the platform-injectedPORTenv var, defaults to 8080 locallyrender.yaml(repo root) — Render Blueprint that configures the web service with a persistent 1 GB disk mounted at/app/data, so the SQLite database survives redeploysCreditCommandCenter/.dockerignore— keeps local database files and dev tooling out of the imagepublic/index.php— when theAPP_PASSWORDenv var is set, the whole app (UI + API) requires HTTP Basic auth via a timing-safe comparison; unset means no gate, so local development is unchangedTesting
php -lcleanAPP_PASSWORDis unsetDeploy steps (after merge)
CreditCommandCenter→ add a volume at/app/data→ setAPP_PASSWORDrender.yamldoes the rest) → setAPP_PASSWORDwhen prompted🤖 Generated with Claude Code
https://claude.ai/code/session_01SxGuNyBj2mK5Vzu8ccthjw
Generated by Claude Code