Skip to content

render-examples/multi-environments-blueprint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blueprints Projects/Environments Demo

This is a minimal demo project showcasing the new blueprints projects and environments feature.

Note: The applications in this repository have no real functionality. They exist solely to support the blueprint demonstration and show how to structure a multi-environment project.

Project Structure

  • Project Name: customer-portal
  • Environments: production, staging

Production Environment

  • Web Service: portal-web (Node.js, Standard plan)
  • Database: portal-db (Postgres 17, pro-4gb, 25GB disk)
  • Env Var Groups: prod-secrets
  • Features: Network isolation enabled, protection enabled

Staging Environment

  • Web Service: portal-web-staging (Node.js, Starter plan)
  • Cron Job: nightly-jobs (Python, runs daily at 1 AM UTC)
  • Database: portal-db-staging (Postgres, basic-1gb)
  • Env Var Groups: staging-secrets
  • Features: Network isolation disabled

Files

  • render.yaml - Blueprint configuration with projects/environments
  • index.js - Minimal Express.js web server
  • package.json - Node.js dependencies
  • scripts/nightly.py - Minimal Python cron job
  • requirements.txt - Python dependencies

Testing Locally

Web Service

npm install
npm start

Visit http://localhost:3000 to see the service info.

Cron Job

pip install -r requirements.txt
python scripts/nightly.py

Deploy to Render

Use the Render Dashboard to deploy this blueprint, which will create both production and staging environments with all configured resources.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published