Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/guide/deploying.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ The portal listens on `:4100`. Compose uses `network_mode: host`, so it binds
that port directly on the host — which is also what lets pi reach a llama-server
running on the same machine at `localhost`.

## Workspace paths

For a native installation, set `WORKSPACE_ROOT` to the directory containing your
projects. The legacy `WORKSPACES_DIR` variable is also accepted when
`WORKSPACE_ROOT` is unset. If both are set, `WORKSPACE_ROOT` wins; with neither
set, the server uses `/workspaces`.

With the supplied Compose files, `WORKSPACES_DIR` selects the **host** directory
mounted at `/workspaces`. Keep the portal's `WORKSPACE_ROOT=/workspaces` so it
uses the path visible inside its container.

## Installing add-ons

To install Browser or Voice from Settings:
Expand Down
4 changes: 2 additions & 2 deletions server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ import { getBuiltinCommands } from "./pi/builtins.js";
import { isValidSlug, slugify } from "./slug.js";
import { getSettingDefaults, getSettings, getStoredSettings, setSettings } from "./db.js";

// WORKSPACE_ROOT is the new name; WORKSPACE_ROOT still works for existing deploys.
// WORKSPACE_ROOT is the new name; WORKSPACES_DIR still works for existing deploys.
const WORKSPACE_ROOT = path.resolve(
process.env.WORKSPACE_ROOT || process.env.WORKSPACE_ROOT || "/workspaces"
process.env.WORKSPACE_ROOT || process.env.WORKSPACES_DIR || "/workspaces"
);
const PORT = Number(process.env.PORT || 4100);
/**
Expand Down