-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathomnibioai-up.sh
More file actions
executable file
·40 lines (31 loc) · 1.22 KB
/
Copy pathomnibioai-up.sh
File metadata and controls
executable file
·40 lines (31 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env bash
set -euo pipefail
SESSION="omnibioai"
# Base paths (repos)
OMNI_CORE=~/Desktop/machine/omnibioai
OMNI_TES=~/Desktop/machine/omnibioai-tes
OMNI_TOOL=~/Desktop/machine/omnibioai-toolserver
OMNI_LIMS=~/Desktop/machine/omnibioai-lims
# Optional: load your env (uncomment + set the right file if you use one)
# [ -f ~/.bashrc ] && source ~/.bashrc
# [ -f ~/.zshrc ] && source ~/.zshrc
# [ -f ~/.omnibioai.env ] && source ~/.omnibioai.env
tmux has-session -t "$SESSION" 2>/dev/null && tmux kill-session -t "$SESSION"
tmux new-session -d -s "$SESSION" -n services
# Pane 0 — Core app
tmux send-keys -t "$SESSION:services" \
"cd \"$OMNI_CORE\" && bash scripts/start_app.sh" C-m
# Pane 1 — TES
tmux split-window -h -t "$SESSION:services"
tmux send-keys -t "$SESSION:services.1" \
"cd \"$OMNI_TES\" && bash scripts/start_app.sh" C-m
# Pane 2 — Tool server
tmux split-window -v -t "$SESSION:services.0"
tmux send-keys -t "$SESSION:services.2" \
"cd \"$OMNI_TOOL\" && bash scripts/start_app.sh" C-m
# Pane 3 — LIMS
tmux split-window -v -t "$SESSION:services.1"
tmux send-keys -t "$SESSION:services.3" \
"cd \"$OMNI_LIMS\" && bash scripts/start_app.sh" C-m
tmux select-layout -t "$SESSION" tiled
tmux attach -t "$SESSION"