diff --git a/README.md b/README.md index 64607689c..59114930f 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/apps/web/package.json b/apps/web/package.json index 349936c8a..00ff86b9c 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -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" diff --git a/render.yaml b/render.yaml new file mode 100644 index 000000000..e6f54021e --- /dev/null +++ b/render.yaml @@ -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