This repo is set up to be deployed to Railway
Create Sentry projects
- Fastify based project for
server
- React based project for
web
- Update app name in package.json
- Update
SENTRY_PROJECT
environment variables
- create
production
environment if it doesn't exist - add these 2 secrets
SENTRY_AUTH_TOKEN
SENTRY_ORG
- create a new empty project
- add a service -> GitHub -> putting-pals
- rename to
server
- add variables including postgres reference
PORT="4000" ORIGIN="https://puttingpals.conorob.me" SENTRY_DSN="https://[email protected]/789"
- update settings
- railway config file
apps/server/railway.json
- region
- resource limits
- railway config file
- rename to
- add a service -> GitHub -> putting-pals
- rename to
web
- add variables
PORT="3000" SENTRY_DSN="https://[email protected]/789"
- update settings
- railway config file
apps/web/railway.json
- region
- resource limits
- railway config file
- rename to
- add a service -> GitHub -> putting-pals
- rename to
proxy
- add variables
WEB_DOMAIN="${{web.RAILWAY_PRIVATE_DOMAIN}}" WEB_PORT="${{web.PORT}}" SERVER_DOMAIN="${{server.RAILWAY_PRIVATE_DOMAIN}}" SERVER_PORT="${{server.PORT}}"
- update settings
- railway config file
apps/proxy/railway.json
- region
- resource limits
- add a custom subdomain on port
8080
and copy the domain providedabc123.up.railway.app
- railway config file
- rename to
- Create a new DNS CNAME record
- Add the subdomain created in Railway
- Add the target provided by Railway
abc123.up.railway.app
- Enable Cloudflare proxy
- Set SSL/TLS mode to Full (Strict)
- Open Network tab in Chrome Dev Tools
- You should see
"Server":"cloudflare"
response headers for all requests