Skip to content

BenIsenstein/pgonrails-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PG On Rails CLI

This is a bash script for creating a Supabase project with PG On Rails, deployed on Railway, with CI/CD configured, from your terminal, hands-free, in minutes.

"PG On Rails | Self-hosted Supabase. Amazing developer experience."

Prefer to use Railway's web UI?

Deploy on Railway

Prerequisites

  • Linux/MacOS/WSL
  • GitHub account
  • Railway account
  • Granted consent for Railway to use GitHub on your behalf
  • Railway API token

Quickstart

bash <(curl -fsSL https://raw.githubusercontent.com/BenIsenstein/pgonrails-cli/main/start.sh)

Input your Railway API token when prompted.

Run locally

git clone https://github.com/BenIsenstein/pgonrails-cli

Copy .env.example into a .env file.

Add your Railway API token to RAILWAY_TOKEN.

Run ./start.sh

Working with your new self-hosted Supabase project

It will take about 5 minutes to deploy and configure itself, and will print progress updates.

Clone your new GitHub repo.

git clone YOUR_REPO

Run your Supabase project locally:

cd YOUR_REPO && ./setup.sh && docker compose up

Commit new code and watch your project deploy continuously :)

Learn more

To learn more about PG On Rails visit the main GitHub repo.

About

Deploy PG On Rails to Railway hands-free.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages