What a process is
You configure processes on the project; each workspace gets its own copy it can tweak without affecting the project. Each process is a pane in the workspace panel, a target row with a number.
A process is a command you want running whenever the workspace is running, like a dev server, a worker, or a test watcher.
You configure processes on the project; each workspace gets its own copy it can tweak without affecting the project. Each process is a pane in the workspace panel, a target row with a number.
Each process command is shell input, run through your login shell in the workspace directory with the workspace variables set (see Environment variables). Plain commands such as npm run dev run naturally, and so do cd, &&, pipes, redirects, and environment assignments:
PORT=$SPACES_WEB_PORT npm run dev
cd frontend && PORT=$SPACES_WEB_PORT npm run dev
npm run dev | tee .logs/frontend.logA command must be non-empty; Spaces leaves parsing to your shell.
Pick what happens when the process exits:
A Linux device has no notification center, so notify shows nothing there; the process still shows exited in the sidebar. An exited process shows red and raises an alert, see Alerts. Once that alert is dismissed, or you visit the process's terminal, the process shows as not started on every device until it exits again.
The row's context menu offers Start, Stop, and Restart when they apply. A restart keeps its pane in place. If a process exits while it is starting, its output shows in its pane.