Use a blueprint to deploy your app along with a PostgreSQL database and Directus self hosted CMS
Juan GallardoTable of Contents
I’m assuming you have an account with Render. I’m deploying straight to production for this guide, but I recommend deploying to a staging environment instead. You can always deploy to a subdomain of yours and change the domain to production when you’re ready.
Consult Render’s documentation for their database and web services plans and their costs
Our Rails web service and our CMS both get their database credentials straight from the database we are provisioning at the top of this file. Nifty, huh?
Un-synced environment variables (sync: false) are not populated (or present) in your Render dashboard. You’ll be prompted for them the first time you deploy your blueprint. If you don’t set them at that time, you must remember to set them later
Our Rails app depends on the environment variable RAILS_MASTER_KEY to decrypt its credentials. Copy this key from /config/master.key and paste in your Render dashboard
Our Directus web service gets its code from a public Docker repository
Unfortunately, it seems like you can’t specify the project to which each service belongs. So you’ll have to create projects to organize your Render resources and move them in once the blueprint is synced and the services are deployed