Skip to content

devlanes is in beta and not ready for production use.Report an issue

Run a folder as two lanes

Use this when you want the same worktree running twice, for example against empty data or with other services, without making a second worktree.

Run this in the folder. The new lane takes the lowest free lane number, such as lane 2 with hostnames under myapp2.localhost.

~/dev/myapp
$ devlanes lane new --name review

The name is what you type to reach the lane. Output and the status show it by its number.

Commands in the folder keep acting on its first lane, so name the second one. Add --profile with one of your profiles, the named sets of services and settings in the project file, to run other services than the first lane.

~/dev/myapp
$ devlanes start --lane review --no-ui

The lane runs its setup and create tasks like any new lane, and a unit reference such as review:web reaches one of its services.

Each lane has its own ports, hostnames and data folder, but the files in the worktree are shared, build output and caches included. Point a service that writes while it runs at the lane’s data folder.

devlanes.yaml
services:
api:
env:
UPLOAD_DIR: "${{ lane.data_path }}/uploads"

Cleaning the lane deletes its data and frees its number. A lane added with devlanes lane new does not come back afterwards.

~/dev/myapp
$ devlanes lane clean review --yes

The lanes of one folder run the branch it has checked out. For another branch, add a worktree with Git and start there, as Every worktree gets a lane shows.