Installation & Setup
How to extract, configure, and deploy Retrail on your server.
This guide walks you through deploying Retrail on your machine or server.
Requirements
- Node.js: v20 or newer (or Bun).
- Package Manager:
npm,pnpm, orbun. - System: Linux, macOS, or Windows.
Quick Start
Extract the Package
Download the Retrail release package (retrail.zip) and extract it to your desired folder:
unzip retrail.zip -d retrail
cd retrailConfigure settings.json
Edit settings.json in the root directory to customize your portfolio:
nano settings.jsonSee the Configuration Guide for the full setting reference.
Start the Server
Start Next.js in development mode:
npm run devOpen http://localhost:3000 in your browser to view your portfolio.
Production Deployment
Building the Application
Compile an optimized production bundle:
npm run buildLaunch the production server:
npm run startnpm run start serves Retrail on port 3000 by default. You can change the port with -p, for example: npx next start -p 8080.
PM2 Process Manager
To run Retrail persistently in the background:
npm install -g pm2
pm2 start npm --name "retrail" -- run start
pm2 save
