Run a task's dev server

Start a task's dev server and worker from the board, each on the worktree's own port, and open it from a link.

  1. Set the commands in the repo config:

    # ~/.config/kebbie/repos/app.toml
    [worktree]
    dev_server = "bin/dev"
    dev_worker = "bin/jobs"
  2. Give each worktree a port: PORT= in its .env, or a port in its setup note. The setup skill picks a free one.

  3. Select the task on the board.

  4. Press w.

The server starts in a server tab of the task's Space with PORT set, and a web line under the task links to it.

  • If you want to stop it, press w again.
  • If you want the worker, press b. It starts and stops the same way.
  • If a worktree has neither a PORT= nor a port in its setup note, no PORT is set.
  • If you set the commands in config.toml for every repo, a command naming a path, such as bin/dev, applies only in a repo that has the file; elsewhere the task shows no server or worker line.
  • If kebbie runs on a remote machine and your browser is on your laptop, see Open dev servers from a remote machine.

The default link is http://localhost:{port}. Behind a proxy that serves each checkout by folder name:

# ~/.config/kebbie/config.toml
[worktree]
dev_url = "https://{worktree}.test"

"" turns the link off. See URL placeholders.

Rename the tabs

# ~/.config/kebbie/config.toml
[worktree]
server_name = "web"
worker_name = "jobs"

The names are also the Space's tags in herdr's sidebar while each runs.

The task's own tab carries the task's name, and the lead Space's tab is kebbie. kebbie names a tab only while it has herdr's number or a name kebbie's sidebar sync gave it, so a tab you renamed in herdr keeps your name.