Skip to content

Instantly share code, notes, and snippets.

@ashx3s
Last active March 20, 2024 02:35
Show Gist options
  • Save ashx3s/3ce0466cc19cbcb2ce600275cd8e8300 to your computer and use it in GitHub Desktop.
Save ashx3s/3ce0466cc19cbcb2ce600275cd8e8300 to your computer and use it in GitHub Desktop.
Directus Render Install Instructions

Directus Supabase Render Install

Keep in mind that it's not necessary to use supabase for this, however we are because we are going to use it's authentication model for end users

Step 1: Initialize your database

  • In Supabase, create a new project
  • set a strong password and use your email
  • ssl set to false (for now)
  • Let it spin up

Step 2: Deploy Directus to Render

  • In render, click to deploy a new web service
  • then select the second option (Deploy from a registry image)
    • in the image field add: directus/directus:10.10.4 (you can also use :latest)
    • then add the following environment variables:
      • KEY -- auto generate
      • SECRET -- auto generate
      • ADMIN_EMAIL -- insert password for signing into cms
      • ADMIN_PASSWORD -- insert your password for the cms
      • DB_CLIENT pg
      • DB_DATABASE postgres
      • DB_PORT 5432
      • DB_HOST -- host from supabase
      • DB_USER -- user from supabase--
      • DB_PASSWORD --password from supabase--
      • DB_SSL false
  • choose the free option
  • hang ou while it builds

Outcome

  • now you can start building content for a web page/app/store etc
  • this provides an interface that non tech savy people can use
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment