This document contains information regarding repositories and code. Additionally some information on troubleshooting.
The project consists of 2 main codebases
Architecture Overview
Codebase folder structure:
oneoffs - this file contains oneoff scripts, mostly data backfills
keystone - core entrypoint file that provides configuration for KeystoneCMS. GraphQL schema and configuration, storage, auth, session, REST endpoints, Express server and node-resque worker setup.
Admin console Keystone comes with admin console which can be accessed here https://cms.resolveai.co/ admin credentials can be found in 1Password
Deployment Process Deploying is pretty straight forward. Railway is connected with GitHub repo so deployment starts right after PR is merged with main branch or any changes on main branch detected. Railway is using zero downtime deployment so that it will only rollover production to new deployment once it confirms that it is operational using health checks.
Monitoring and Maintenance: There is a HealthCheck worker separate from Railway one that is deployed also on Railway that only job is to monitor health it will trigger a notification to Slack if server is not responsive
Troubleshooting Guide:
production
environmentWorkflow:
yarn
commandenv.example
to .env
file and add environment variables
npx prisma db push
yarn dev
npx prisma migrate dev
IS_WORKER
value is .env file