-
-
Notifications
You must be signed in to change notification settings - Fork 100
Expand file tree
/
Copy pathTiltfile
More file actions
51 lines (48 loc) · 959 Bytes
/
Copy pathTiltfile
File metadata and controls
51 lines (48 loc) · 959 Bytes
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
# Install Node deps on change of package.json
local_resource(
'pnpm',
cmd='pnpm install', # Not using the make target to edit the lockfile
deps=['package.json'],
)
# Rebuild frontend if source files change
local_resource(
'frontend',
cmd='make frontend',
deps=['src'],
resource_deps=['pnpm'],
)
# Generate translation files on source change
local_resource(
'translations',
cmd='make translate',
deps=['i18n.yaml'],
)
# Rebuild and run Go webserver on code changes
local_resource(
'server',
deps=[
'api.go',
'frontend',
'helpers.go',
'main.go',
'pkg',
'storage.go',
'tplFuncs.go',
'go.mod', 'go.sum',
],
ignore=[
'src'
],
serve_cmd='go run . --listen=:15641',
serve_env={
'CUSTOMIZE': 'customize.yaml',
},
readiness_probe=probe(
http_get=http_get_action(15641, path='/api/healthz'),
initial_delay_secs=1,
),
resource_deps=[
'frontend',
'translations',
],
)