Skip to main content

Usage

  • Exactly one Projectfile path. The path can be relative or absolute.
  • Flags go before the path. Mistakes print a hint and the usage, and exit with code 2:

Flags

-collector-address on all interfaces (0.0.0.0:50000, :50000) works: the collector connects through localhost. The UI answers only to localhost, IP addresses and the host name in -server. Opening it through any other host name (a .local name, or one from /etc/hosts) fails with localdev: request rejected, unexpected Host header. Use the IP address, or set that name in -server.

Environment variables

These variables set the same sizes as the -store-* flags: An empty value counts as not set. An invalid value stops start-up, even if a valid flag is also given.

Order of store settings

Each size is taken from the first of these that sets it: the flag, the environment variable, store in the Projectfile, then the default.

Exit codes

Signals

Examples

Running from another directory is fine. Services still run in the Projectfile’s directory.

Port already in use

Localdev stops at start-up if one of its ports is taken:
It’s usually another instance of Localdev. To find what holds a port:

Two instances at once

To run two at once, give the second one its own ports. For example:
with, in its Projectfile:
The services’ own ports (API_PORT and so on) must differ too.

Start-up output

Service output is the directory with the services’ stdout and stderr files.