forked from hylarucoder/playbase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyadjangoblog.yml
74 lines (62 loc) · 2.32 KB
/
yadjangoblog.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
# ~/.tmuxinator/yavueblog.yml
name: yavueblog
root: ~/Codes/YaBlog/
# Optional tmux socket
# socket_name: foo
# Runs before everything. Use it to start daemons etc.
# pre: sudo /etc/rc.d/mysqld start
# Project hooks
# Runs on project start, always
# on_project_start: command
# Run on project start, the first time
# on_project_first_start: command
# Run on project start, after the first time
# on_project_restart: command
# Run on project exit ( detaching from tmux session )
# on_project_exit: command
# Run on project stop
# on_project_stop: command
# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
pre_window: pyenv activate 3.5.2/envs/py3-daily
# Pass command line options to tmux. Useful for specifying a different tmux.conf.
# tmux_options: -f ~/.tmux.mac.conf
# Change the command to call tmux. This can be used by derivatives/wrappers like byobu.
# tmux_command: byobu
# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used.
# startup_window: editor
# Specifies (by index) which pane of the specified window will be selected on project startup. If not set, the first pane is used.
# startup_pane: 1
# Controls whether the tmux session should be attached to automatically. Defaults to true.
# attach: false
# Runs after everything. Use it to attach to tmux with custom options etc.
# post: tmux -CC attach -t yavueblog
windows:
- "前端-页面开发":
root: ~/Codes/YaBlog/YaVueBlog/
layout: main-vertical
panes:
- "前端页面DEV":
- "npm run dev"
- "前端-CSS与字体文件":
root: ~/Codes/YaBlog/YaVueBlog/
layout: main-vertical
panes:
- "npm run dev:theme"
- "npm run dev:iconfont"
- "后端-Django 及其服务":
root: ~/Codes/YaBlog/YaDjangoBlog/
layout: main-vertical
panes:
- "make django-before-up && make django-runserver"
- "后端-数据库相关":
layout: main-vertical
root: ~/Codes/YaBlog/YaDjangoBlog/
panes:
- "sleep 20 && make dbshell"
- "sleep 20 && make shell"
- "后端-Celery":
layout: main-vertical
root: ~/Codes/YaBlog/YaDjangoBlog/
panes:
- "sleep 20 && make django-celerybeat"
- "sleep 20 && make django-celeryworker"