-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Tenzin Youdon edited this page Dec 30, 2024
·
2 revisions
Welcome to the pecha-tools-landing-page wiki!
This guide walks through the process of deploying a Remix application to Render using Blueprint, including database setup and configuration.
- A GitHub repository containing your Remix application
- A Render account
- DBeaver (optional, for database management)
- Create a
render.yaml
file in the root directory of your repository. This file defines your application's configuration for Render's platform.
Example render.yaml
:
services:
- type: web
name: your-app-name
env: node
plan: starter
repo: https://github.com/your-username/your-repo-name.git
branch: main
buildCommand: npm ci --production=false && npm run build && npm prune --production
startCommand: npx prisma migrate deploy && npm run start
envVars:
- key: NODE_VERSION
value: ~18.18.0
- key: NODE_ENV
value: production
- key: DATABASE_URL
fromDatabase:
name: your-database-name
property: connectionString
databases:
- name: your-database-name
plan: free
- Clone your repository locally if you haven't already:
git clone <your-repository-url>
- Log into Render (either through organization credentials or personal account)
- Navigate to the Dashboard
- Click on "Blueprint" in the navigation
- Select "New Blueprint Instance"
- Connect your repository:
- Either connect directly through GitHub
- Or paste your repository URL if it's public
- Enter a Blueprint name (recommended: use your repository name)
- Click "Apply" to start the deployment process
- Once deployment completes, your services will appear under "Ungrouped Services"
- Organize your services:
- Select the newly created services
- Move them to an existing project or create a new one
- Set an environment name (can match your repository name)
- Navigate to your service dashboard
- Go to the "Environment" tab
- Locate your database service (e.g., "your-database-pg")
- Under the "Connections" section, you'll find two URLs:
- Internal Database URL: Used by your application
- External Database URL: Use this one for DBeaver connection
- To connect using DBeaver:
- Create a new connection in DBeaver
- Copy the External Database URL
- Parse the
DATABASE_URL
to extract:- Host
- Database name
- Username
- Password
- Enter these credentials in DBeaver's connection setup
- Monitor deployment progress in the "Logs" section of your service
- Verify your application is running by:
- Checking the deployment status
- Visiting the deployed URL
- Confirming database connectivity through DBeaver
If you encounter issues:
- Check the deployment logs for error messages
- Verify your
render.yaml
configuration - Ensure all environment variables are properly set
- Confirm database credentials are correctly configured