-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tiltfile
45 lines (37 loc) · 1.09 KB
/
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
# point Tilt at the existing docker-compose configuration.
docker_compose("./docker-compose.yml")
config.define_bool("local-app")
cfg = config.parse()
local_app = cfg.get("local-app", False)
resources = [
"redis",
"database",
"app",
"worker",
"nginx"
]
if local_app:
resources.remove("nginx")
resources.remove("app")
resources.remove("worker")
local_resource(
"local_app",
serve_cmd="./bin/app-startup.sh",
serve_env={
"RAILS_ENV": "development",
"DATABASE_URL": "postgresql://gtrp:gtrp@localhost:5432/get_an_international_relocation_payment_development"
},
resource_deps=["database", "redis"],
readiness_probe=probe(
period_secs=15, http_get=http_get_action(port=3000, path="/healthcheck")
),
)
local_resource(
"local_worker",
serve_cmd="./bin/worker-startup.sh",
resource_deps=["database", "redis"],
)
resources.append("local_app")
resources.append("local_worker")
config.clear_enabled_resources()
config.set_enabled_resources(resources)