Trieve consists of multiple different services and it is convenient to load them with tmuxp.
You will need to enter the directory with the trieve
repository with cd trieve
from wherever you cloned.
Then, I recommend killing all your running docker containers with docker ps -q | xargs docker kill
.
Following this, start the trieve
containers with ./convenience -l
. You may need to chmod +x ./convenience
.
Start by making the config directory for tmuxp with mkdir ~/.config/tmuxp
.
Then, create a file for the trieve
config with touch ~/.config/tmuxp/trieve.yaml
.
Finally, paste the following contents into the trieve.yaml
file using your editor of choice. You may want to chane start_directory
to the directory where you cloned trieve
.
session_name: trieve
start_directory: ~/git_projects/devflowinc/trieve
windows:
- window_name: server
layout: tiled
panes:
- cd server; cargo watch -x run
- window_name: ingestion
panes:
- cd server; cargo run --bin ingestion-worker
- window_name: deletion
panes:
- cd server; cargo run --bin delete-worker
- window_name: file
panes:
- cd server; cargo run --bin file-worker
- window_name: frontends
panes:
- yarn dev
Start up Trieve local dev with tmuxp load trieve
.
You can attach to it then with tmux a -t trieve
.
just run
tmuxp load trieve
to reattach. If the session exists it again if you want to attach to it or not