Retrail/Setup Guide

Setup Guide

Install Retrail, edit settings.json and put your portfolio online.

Retrail is a Next.js app. You install it once, edit settings.json and run it. There is no database and no admin panel.

Before You Start

You need:

  • A host that runs Node.js 20.9 or newer.
  • The retrail.zip from your BuiltByBit download.
  • A domain, if you want your portfolio public.

Hosting

OptionBest for
Game panel (Pterodactyl)The easiest choice. The panel keeps Retrail running and gives you a file manager.
Linux VPS or dedicated serverFull control. Use a process manager such as PM2.
DockerRunning next to other containers.
Your own computerTrying it out and editing settings.json.

Haven Development hosts Retrail on Pterodactyl.

Install

  1. Create a server with a Node.js 20 or newer egg.
  2. Upload and extract retrail.zip.
  3. Set the startup command to npm install && npm run build && npm start -- -p {{SERVER_PORT}}.
  4. Start the server.

Open http://localhost:3000, or your server's address on port 3000. To use another port, start it with npm start -- -p 8080.

Configure

Set your name, colours and sections in settings.json. See Configuration and the Page Builder.

Retrail reads settings.json on every page load, so changes show up when you refresh. You do not need to rebuild or restart. The file stays on the server and is never sent to visitors.

settings.json must be valid JSON. A missing comma or quote stops the page from loading. Paste it into a JSON validator if the page breaks after an edit.

Hosting on a Domain

Point a domain at your server and put a reverse proxy in front of port 3000. Pick yours:

Caddy gets and renews HTTPS certificates on its own. Add this to your Caddyfile and reload Caddy.

/etc/caddy/Caddyfile
portfolio.example.com {
    reverse_proxy 127.0.0.1:3000
}
Terminal
sudo systemctl reload caddy

Updating

  1. Back up settings.json.
  2. Extract the new version over the old folder, keeping your settings.json.
  3. Run npm install and npm run build, then restart.

Next

Read Page Builder to add your sections.