Skip to main content

orphelix restart

Restart the Orphelix application without rebuilding. This is a quick restart that only restarts the PM2 process.

Usage

orphelix restart [options]

What it does

The restart command:
  1. Syncs static assets to standalone build
  2. Restarts the PM2 process
This is much faster than rebuild (1-2 seconds vs 30-60 seconds).

Options

OptionAliasDescription
--port-pCustom port
--name-nInstance name

Example

orphelix restart
orphelix restart --port 8080
orphelix restart --name prod

When to use

Use restart when:
  • You’ve changed configuration files (.env.local)
  • You want to reload without code changes
  • You need a quick restart
For code changes, use rebuild instead.

Difference from rebuild

CommandWhat it doesTimeUse case
restartRestart PM2 only~1sConfig changes
rebuildBuild + restart~30-60sCode changes