Railway
Deploy your book to Railway with simple deployment.
npx metrists publish railway
What it does
- Creates a
nixpacks.toml
configuration file (Railway uses Nixpacks for builds) - Sets up Node.js as the provider
- Configures build phases and start command
- Uses
npx serve -s
to serve your built book as a static site
Generated Configuration
The generated configuration includes:
- Node.js provider setup
- Build phase with your book’s build command
- Start command to serve static files
Next Steps
-
Install the Railway CLI if you haven’t already:
npm install -g @railway/cli
-
Login to Railway:
railway login
-
Initialize and deploy your project:
railway link railway up
Your book will be deployed and available at your Railway URL!