Skip to Content

Signup Modes & First-Run Setup

One environment variable, SIGNUP_MODE, controls who can register accounts and create organizations. An unknown value halts boot.

SIGNUP_MODEBehavior
closed (default)No public signup (/signup returns 404). Invited users can still join your organization via their invitation link. Creating extra organizations is disabled.
waitlistUsed by app.msend.dev. /signup renders a waitlist form. Operators approve entries to email a single-use signup link valid for 7 days.
openAnyone can sign up and receives a personal organization. Creating additional organizations is allowed.

First-Run Setup

On a fresh install with zero users, visiting the app redirects to /setup to create the owner account and initial organization. Once any user exists, /setup permanently returns 404.

For headless or automated installs:

ADMIN_EMAIL=you@example.com \ ADMIN_PASSWORD=change-me-now \ ORGANIZATION_NAME="Acme" \ bin/rails msend:setup

On a Kamal deployment, run bin/kamal app exec "bin/rails msend:setup" with those variables set.

Managing the Waitlist (SIGNUP_MODE=waitlist)

bin/rails waitlist:list bin/rails "waitlist:approve[ada@example.com]" bin/rails "waitlist:reject[ada@example.com]"
Last updated on