Add docs/deploy-replit.md
This commit is contained in:
parent
fc799f6eb7
commit
d764a15ba4
1 changed files with 28 additions and 0 deletions
28
docs/deploy-replit.md
Normal file
28
docs/deploy-replit.md
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# Deploy to Replit
|
||||
|
||||
Recommended deployment platform. Handles Node.js, PostgreSQL, secrets, and HTTPS out of the box.
|
||||
|
||||
**Cost:** ~$25–50/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).
|
||||
Loading…
Add table
Reference in a new issue