-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTiltfile
More file actions
84 lines (75 loc) · 2.1 KB
/
Tiltfile
File metadata and controls
84 lines (75 loc) · 2.1 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
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
75
76
77
78
79
80
81
82
83
84
load('ext://uibutton', 'cmd_button', 'choice_input', 'location', 'text_input', 'bool_input')
load('ext://dotenv', 'dotenv')
# Load environment variables from .env file in project root
dotenv()
local_resource(
name='Web',
labels=["Apps"],
serve_cmd="bun --cwd apps/web dev",
links=[ link("http://localhost:3000/", "Web") ],
)
cmd_button(
name="btn-web-kill",
resource="Web",
icon_name="terminal",
text="Kill Port",
argv=["sh", "-c", "lsof -i :3000 -t | xargs kill"],
)
local_resource(
name='Trigger',
labels=["Apps"],
serve_cmd="bun run --cwd apps/trigger dev",
links=[ link("https://cloud.trigger.dev/orgs/tailz-5e0b/projects/tailz-uBK2/env/dev/runs", "Trigger") ],
)
# Apps => Firebase
local_resource(
name='Docs',
labels=["Apps"],
serve_cmd="cd apps/docs && mint dev --port 3001",
links=[ link("http://localhost:3001", "Docs") ],
)
cmd_button(
name="btn-docs-kill",
resource="Docs",
icon_name="terminal",
text="Kill Port",
argv=["sh", "-c", "lsof -i :3001 | awk 'NR>1 {print $2}' | xargs kill"],
)
local_resource(
labels=["Development"],
name='MCP Builder',
serve_cmd="bunx @modelcontextprotocol/inspector ~/.bun/bin/kyoto mcp --cwd ./",
)
cmd_button(
name="btn-mcp-kill",
resource="MCP Builder",
icon_name="terminal",
text="Kill Port",
argv=["sh", "-c", "lsof -i :6277 -t | xargs kill"],
)
local_resource(
name='Drizzle Studio',
labels=["Development"],
serve_cmd="bun run --cwd packages/db db:studio",
links=[link("https://local.drizzle.studio", "Drizzle Studio") ],
)
cmd_button(
name="btn-drizzle-kill",
resource="Drizzle Studio",
icon_name="terminal",
text="Kill Port",
argv=["sh", "-c", "lsof -i :4983 -t | xargs kill"],
)
local_resource(
name='Storybook',
labels=["Development"],
serve_cmd="bun run --cwd apps/web storybook",
links=[ link("http://localhost:6006/", "Storybook") ],
)
cmd_button(
name="btn-storybook-kill",
resource="Storybook",
icon_name="terminal",
text="Kill Port",
argv=["sh", "-c", "lsof -i :6006 -t | xargs kill"],
)