Skip to content

Make Capital Command Center deploy-ready for Railway/Render - #5

Draft
bfricano wants to merge 1 commit into
masterfrom
claude/credit-financing-dashboard-m0fizn
Draft

Make Capital Command Center deploy-ready for Railway/Render#5
bfricano wants to merge 1 commit into
masterfrom
claude/credit-financing-dashboard-m0fizn

Conversation

@bfricano

Copy link
Copy Markdown
Owner

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/Dockerfilephp:8.3-cli-alpine image (pdo_sqlite is bundled), honors the platform-injected PORT env var, defaults to 8080 locally
  • render.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 redeploys
  • CreditCommandCenter/.dockerignore — keeps local database files and dev tooling out of the image
  • Optional password gate in public/index.php — when the APP_PASSWORD env 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 unchanged
  • README — deployment instructions for both platforms plus the security note

Testing

  • php -l clean
  • Verified with a live server: 401 with no/wrong credentials, 200 with the correct password, API reachable with auth, and 200 with no gate when APP_PASSWORD is unset

Deploy steps (after merge)

  • Railway: New Project → Deploy from GitHub → root directory CreditCommandCenter → add a volume at /app/data → set APP_PASSWORD
  • Render: New → Blueprint → pick this repo (render.yaml does the rest) → set APP_PASSWORD when prompted

🤖 Generated with Claude Code

https://claude.ai/code/session_01SxGuNyBj2mK5Vzu8ccthjw


Generated by Claude Code

- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants