Run the three-repo demo
Install pot, start a Rust API and an Astro app from one manifest, then start a second stack on different ports without stopping the first.
The release artifact is Linux x86_64 and carries devenv, so there is
no separate devenv install. You need Git 2.38 or newer, curl,
and network access.
1Install pot
curl -fsSL https://pot.slopkit.dev/install.sh | sh
The script installs the newest stable release to
~/.local/bin/pot after checking its SHA-256 against
the checksum in the package registry. If that directory is not on
PATH, the script prints the line to add.
$ pot --version pot 0.5.0
Later, pot update replaces the installed binary with
the latest stable release.
2Clone the demo stack
The stack manifest points at three public repositories: a Rust API, an Astro web app, and a React package.
git clone https://gitlab.techtailors.net/slopkit/demos/stack.git cd stack
3Start the stack
pot up demo
The first run clones the three repositories, creates the worktrees, compiles the Rust API, installs the web dependencies, and starts both processes. It can take a few minutes. Leave the terminal attached to devenv.
Open http://localhost:4321, or the port devenv prints.
The page shows the React badge from the ui repository
and a greeting from the API on port 8080.
If the start fails, run pot doctor from the stack root.
It prints the fix for each problem it finds.
4Run a second thread
Leave the first stack running. In a second terminal at the stack root:
pot up demo --thread second
devenv allocates the next free ports. In the demo run, the first
thread used 8080 and 4321, and the second used 8081 and 4322. Open
http://localhost:4322 while the first page stays up.
5Check and stop
From the stack root, pot status prints one row per
repository of every thread:
| THREAD | REPO | BRANCH | STATE |
|---|---|---|---|
| demo | api | stack/demo | clean |
| demo | web | stack/demo | clean |
| demo | ui | stack/demo | clean |
| second | api | stack/second | clean |
| second | web | stack/second | clean |
| second | ui | stack/second | clean |
The real table also prints AHEAD and the worktree
PATH. ui is a package, so it has no process
and no port. It still gets a worktree and a row.
Stop the second stack, then the first:
pot down demo --thread second pot down demo
Worktrees stay on disk. When you no longer need the second thread,
pot clean second removes its worktrees, branches, and
project directory. Add --force only if you mean to remove
dirty worktrees or commits that are not on the repo's base ref.
Every command and manifest field is in the documentation. The demo sources are in the demo group.