Add docs/deploy-replit.md

This commit is contained in:
WellBuilder Admin 2026-05-26 16:13:32 +00:00
parent fc799f6eb7
commit d764a15ba4

28
docs/deploy-replit.md Normal file
View file

@ -0,0 +1,28 @@
# Deploy to Replit
Recommended deployment platform. Handles Node.js, PostgreSQL, secrets, and HTTPS out of the box.
**Cost:** ~$2550/month on Replit Core.
---
## Steps
1. **Import**: replit.com → New Repl → Import from Git → `https://git.wellspr.ing/WellBuilder/notshop-bundle`
2. **Secrets**: Add in the Secrets tab:
- `AUTHNET_API_LOGIN_ID`
- `AUTHNET_TRANSACTION_KEY`
- `AUTHNET_ENV` (sandbox or production)
- `DATABASE_URL` (see step 3)
- `SHOPIFY_STOREFRONT_TOKEN`
- `SHOPIFY_STORE_DOMAIN`
- `SESSION_SECRET` (any long random string)
3. **Database**: Tools → Database → Create PostgreSQL → copy `DATABASE_URL` into Secrets → Shell: `npm run db:migrate`
4. **Run**: Click Run, then in the Shell: `npm run catalog:import`
5. **Publish**: Deploy → Publish → add your custom domain in Repl settings → update DNS CNAME.
Or use Fly.io in front of Replit for edge routing and traffic splitting — see [fly-routing.md](fly-routing.md).