-
Notifications
You must be signed in to change notification settings - Fork 6
/
.tmuxinator.yml
74 lines (69 loc) · 2.09 KB
/
.tmuxinator.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: ddd-video-club
root: ./
# Runs before everything. Use it to start daemons etc.
on_project_start: echo starting stack...
# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
# pre_window: rbenv shell 2.0.0-p247
# Pass command line options to tmux. Useful for specifying a different tmux.conf.
# tmux_options: -f ~/.tmux.mac.conf
# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used.
# startup_window: input
windows:
- workspace:
layout: even-vertical
panes:
- workspace:
- printf '\033]2;%s\033\\' 'workspace'
- clear
- services1:
layout: even-vertical
panes:
- rental:
- printf '\033]2;%s\033\\' 'rental'
- sleep 30
- cd packages/rental
- yarn dev
- movies:
- printf '\033]2;%s\033\\' 'movies'
- sleep 30
- cd packages/movies
- yarn dev
- services2:
layout: even-vertical
panes:
- pricing:
- printf '\033]2;%s\033\\' 'pricing'
- sleep 30
- cd packages/pricing
- yarn dev
- accounting:
- printf '\033]2;%s\033\\' 'accounting'
- sleep 30
- cd packages/accounting
- yarn dev
- infrastructure:
layout: even-vertical
panes:
- database:
- printf '\033]2;%s\033\\' 'database'
- cd packages/database
- docker compose up -d
- sleep 25
- yarn knex migrate:latest
- eventbus:
- printf '\033]2;%s\033\\' 'eventbus'
- cd packages/event-bus
- docker compose up
- reverse-proxy:
- printf '\033]2;%s\033\\' 'reverse-proxy'
- cd packages/reverse-proxy
- caddy run
- frontend:
layout: even-vertical
panes:
- frontend:
- printf '\033]2;%s\033\\' 'frontend'
- sleep 35
- cd packages/frontend
- yarn dev
- clear