Repository navigation
Add Support ticket service and Railway deployment - #25
jackshim415 wants to merge 17 commits into
Conversation
|
🚅 Deployed to the lovat-pr-25 environment in lovat
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 11f81d8ed5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| To run: | ||
|
|
||
| ```bash | ||
| bun run index.ts |
There was a problem hiding this comment.
Point the run command at the actual server entry point
In a fresh checkout, bun run index.ts exits with Module not found "index.ts"; a repository-wide search confirms that no such file exists and the implementation is instead under src/server.ts. The documented startup path therefore cannot launch this new service even after dependencies are installed, and the stale module field in package.json points to the same nonexistent entry point.
Useful? React with 👍 / 👎.
| "private": true, | ||
| "devDependencies": { | ||
| "@types/bun": "latest" | ||
| }, | ||
| "peerDependencies": { |
There was a problem hiding this comment.
Add Support to the repository verification path
This manifest exposes no type-check, build, test, or lint script, while scripts/check-all.sh invokes checks only for the four existing applications. Consequently neither the aggregate check nor an app-local command validates this backend, allowing the unresolved Hono/Express API mismatches in src/app.ts and src/server.ts to merge unnoticed; add a Support check script and invoke it from the aggregate checker.
AGENTS.md reference: AGENTS.md:L27-L34
Useful? React with 👍 / 👎.
# Conflicts: # apps/website/src/lib/util/sendSignedRequest.ts
What changed
Add a Bun/Hono Support service with signed ticket-ingestion endpoints. Route Website contact submissions to Support and persist tickets through the shared database package. Include support-ticket schema migrations, optional requester team numbers, and fixes to await ticket creation and return route responses.
Areas affected
Support, Website contact handling, and the shared database schema. Server deployment-file relocation is separate in PR #38.
Deployment
Create a Railway Support service with Root Directory
/and Config File/apps/support/railway.json. ConfigureDATABASE_URLfor the shared Lovat database andLOVAT_SIGNING_KEYto match Website. Set WebsiteLOVAT_SUPPORT_BASEto the Support origin. The Docker image builds the shared Prisma package; a pre-deploy step applies migrations, and/statuschecks HTTP availability. Full setup is in the Support README.Verification
Support and shared DB built from a clean copy without local secrets or generated files. HTTP smoke checks returned 200 for
/statusand 401 for unsigned ticket requests. Website type checking and production build passed on Node 20.19.6, with existing formatting lint issues. Docker image validation was unavailable because Docker was not running. No live Railway deployment or production migration was performed.