Use a run script to easily launch your web server, app, or unit tests from a button in Conductor.

Example

conductor.json:
{
    "scripts": {
        "run": "python3 -m http.server --port $CONDUCTOR_PORT"
    }
}

How it works

The run script runs in your workspace directory ($CONDUCTOR_WORKSPACE_PATH). In this example, we start a web server running on ($CONDUCTOR_PORT). Conductor allocates ten ports to each workspace ($CONDUCTOR_PORT through $CONDUCTOR_PORT+9).

Nonconcurrent mode

If you can’t run multiple dev servers at once, use nonconcurrent mode. In this mode, whenever you click the run button, Conductor will kill any in-progress run scripts before starting the new one.
{
    "scripts": {
        "run": "echo Running..."
    },
    "runScriptMode": "nonconcurrent"
}
For more details about how run scripts work, see Scripts.