-
Notifications
You must be signed in to change notification settings - Fork 37
/
Tiltfile
47 lines (42 loc) · 981 Bytes
/
Tiltfile
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
config.set_enabled_resources([
"messaging",
"inject-build",
"inject-serve",
"webchat",
])
webchat_port = 3543
inject_port = 8080
messaging_port = 3101
local_resource(
name="messaging",
serve_cmd="yarn dev",
links=[
'http://127.0.0.1:%s/' % messaging_port,
],
readiness_probe=probe(tcp_socket=tcp_socket_action(port=messaging_port)),
labels=["service"]
)
local_resource(
name="inject-build",
serve_dir="packages/inject",
serve_cmd="yarn dev",
labels=["service"],
)
local_resource(
name="inject-serve",
serve_dir="packages/inject/dist",
serve_cmd="npx http-server",
readiness_probe=probe(tcp_socket=tcp_socket_action(port=inject_port)),
labels=["service"],
)
local_resource(
name="webchat",
serve_dir="packages/inject",
cmd="mkdir -p dist && yarn copy:shareable",
serve_cmd="yarn serve",
labels=["service"],
resource_deps=["messaging"],
serve_env={
'MESSAGING_ENDPOINT': 'http://localhost:%s' % messaging_port,
}
)