website/src/content/docs/self-hosting/railway.mdx
import { TutorialVideo } from '@/components/TutorialVideo';
Choose the template that best fits your needs:
You can also use the Rivet Railway template as a starting point for your application.
<Note> After deploying either template, you can find the `RIVET__AUTH__ADMIN_TOKEN` under the **Variables** tab in the Railway dashboard. This token is required to access the Rivet Inspector. </Note># Using Railway CLI
railway init
# Or create via dashboard
# https://railway.app/new
rivetdev/engine:latestRIVET__POSTGRES__URL=${{Postgres.DATABASE_URL}}Follow the Railway Quick Start guide to deploy your repository:
RIVET_ENDPOINT=${{Rivet.RAILWAY_PRIVATE_DOMAIN}} - Points to the Rivet Engine service's private domain