Merge pull request #251 from documenso/docs/add-render-deploy

docs: add render one click deploy button
This commit is contained in:
Lucas Smith
2023-08-24 10:49:03 +10:00
committed by GitHub
3 changed files with 68 additions and 1 deletions

View File

@ -224,6 +224,10 @@ We support a variety of deployment methods, and are actively working on adding m
[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/DjrRRX)
## Render
[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/documenso/documenso)
# Troubleshooting
## I'm not receiving any emails when using the developer quickstart

View File

@ -5,7 +5,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"start": "next start -p $PORT",
"lint": "next lint",
"db-studio": "prisma db studio",
"stripe:listen": "stripe listen --forward-to localhost:3000/api/stripe/webhook"

63
render.yaml Normal file
View File

@ -0,0 +1,63 @@
services:
- type: web
name: documenso-app
env: node
plan: free
buildCommand: npm i turbo && npm install --package-lock-only && npm ci && npm run build
startCommand: npx prisma migrate deploy; npm run start
healthCheckPath: /api/health
envVars:
- key: NODE_VERSION
value: 18.17.0
- key: DATABASE_URL
fromDatabase:
name: documenso-db
property: connectionString
- key: NEXT_PUBLIC_WEBAPP_URL
fromService:
name: documenso-app
type: web
envVarKey: RENDER_EXTERNAL_URL
- key: NEXTAUTH_SECRET
generateValue: true
- key: NEXTAUTH_URL
fromService:
name: documenso-app
type: web
envVarKey: RENDER_EXTERNAL_URL
- key: SENDGRID_API_KEY
sync: false
- key: SMTP_MAIL_HOST
sync: false
- key: SMTP_MAIL_PORT
sync: false
- key: SMTP_MAIL_USER
sync: false
- key: SMTP_MAIL_PASSWORD
sync: false
- key: MAIL_FROM
sync: false
- key: NEXT_PUBLIC_ALLOW_SUBSCRIPTIONS
value: false
- key: STRIPE_API_KEY
sync: false
- key: STRIPE_WEBHOOK_SECRET
sync: false
- key: NEXT_PUBLIC_STRIPE_COMMUNITY_PLAN_MONTHLY_PRICE_ID
sync: false
- key: NEXT_PUBLIC_STRIPE_COMMUNITY_PLAN_YEARLY_PRICE_ID
sync: false
- key: NEXT_PUBLIC_ALLOW_SIGNUP
value: true
databases:
- name: documenso-db
plan: free