create-pgonrails
v1.0.0
Published
Deploy a complete self-hosted Supabase instance on Railway in minutes
Maintainers
Readme
PG On Rails CLI
Deploy a complete self-hosted Supabase instance with PG On Rails 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?
Prerequisites
- Node.js 18+ (or Bun)
- GitHub account
- Railway account
- Granted consent for Railway to use GitHub on your behalf
- Railway API token
Quickstart
npx create-pgonrailsInput your Railway API token when prompted.
Or set the token via environment variable:
RAILWAY_TOKEN=your-token npx create-pgonrailsOptions
--dry-run- Preview what the CLI will do without making any API calls
npx create-pgonrails --dry-runLegacy Shell Script
You can run the legacy shell script directly, although it is no longer maintained:
bash <(curl -fsSL https://raw.githubusercontent.com/BenIsenstein/pgonrails-cli/main/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_REPORun your Supabase project locally:
cd YOUR_REPO && ./setup.sh && docker compose upCommit new code and watch your project deploy continuously :)
Learn more
To learn more about PG On Rails visit the GitHub repo.
