RedwoodJS is a full-stack framework for building and deploying JAMstack web applications. It consists of a React frontend and a Node backend that exposes a GraphQL API. Redwood uses Prisma to communicate with a database such as SQLite or PostgreSQL.
Check out our demo Redwood app running on Render here.
Run the following command to configure your project for deployment to Render:
yarn rw setup deploy render
This command will:
Define a health check endpoint at
By default, this command will configure your project to use a Postgres database that is fully managed by Render. See Database Selection for more information.
Redwood typically uses an
.nvmrc file to control the Node version. With Render, the Node version is controlled with the
NODE_VERSION environment variable in the generated
See Specifying a Node Version if you need to customize the version of Node.js used for your app.
Once your Redwood project is ready for deployment to Render:
Create a Render account.
Create your services from YAML https://dashboard.render.com/select-repo?type=iac by linking your GitHub or GitLab account and selecting the repository for your Redwood project.
Review and apply the changes.
Navigate to the API service and obtain your
Navigate to the
webstatic site and click on Redirects/Rewrites.
Create a Rewrite rule pointing to the API service URL.
Click Save Changes.
- In your
render.yamlfile, replace the rewrite rule destination with the
onrender.comservice URL. This ensures that the rewrite rule will not change on subsequent deployments.
By default, the setup command configures your project to use PostgreSQL, which is recommended for production workloads. Render also supports deployments that use SQLite or any of the databases supported by Primsa.
-d flag to override the default value (
yarn rw setup deploy render -d sqlite
yarn rw setup deploy render -d none
Before running the command, check that the data source provider in
api/db/schema.prisma is correct. Otherwise:
- Correct the data source provider.
- Delete the migrations folder at
- Run the following command:
yarn redwood prisma migrate devto run migrations for the new provider.
Render’s fully-managed PostgreSQL offering includes encryption at rest, automated backups, and expandable SSD storage.
To learn more see Databases.
SQLite allows you to run a small and fast SQL database engine that writes directly to disk on your API server. The advantage of SQLite is fast and easy local development, which translates to a low-cost cloud deployment.
See Appropriate Uses for SQLite for more information.Adding a disk to a service prevents zero downtime deploys.
To use an externally hosted database, add your connection URL as an environment variable named