-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrally.toml.example
More file actions
92 lines (77 loc) · 2.51 KB
/
rally.toml.example
File metadata and controls
92 lines (77 loc) · 2.51 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
85
86
87
88
89
90
91
92
# SPDX-FileCopyrightText: 2026 Alexander R. Croft
# SPDX-License-Identifier: GPL-3.0-or-later
# rally.toml — example configuration for the `rally` dev helper
#
# Run with: rally [path/to/rally.toml]
# Then open http://127.0.0.1:7700 in your browser.
# ── UI settings (optional) ────────────────────────────────────────────────
[ui]
host = "127.0.0.1"
port = 7700
# ── External environment provider (optional) ──────────────────────────────
[env_command]
command = "macrun"
args = ["--project", "example-pack", "--profile", "dev", "env", "--format", "json"]
format = "json"
timeout_ms = 5000
override_existing = false
# workdir = "."
# ── Shared environment (optional) ─────────────────────────────────────────
[env]
HOST = "127.0.0.1"
LOG_LEVEL = "info"
# ── Application definitions ───────────────────────────────────────────────
[[app]]
name = "database"
access = "postgres://localhost:5432/mydb"
enabled = true
command = "sleep"
args = ["3600"]
[[app]]
name = "api-server"
access = "http://127.0.0.1:8080"
enabled = true
command = "sleep" # replace with your real binary, e.g. "./target/debug/api-server"
args = ["3600"]
depends_on = ["database"]
workdir = "${HOME}/dev/api" # optional; defaults to directory of this file
restart_on_exit = false
health_url = "http://localhost:8080/health" # remove if not applicable
health_interval_secs = 10
log_lines = 500
[app.watch]
paths = ["./config/development.toml", "./migrations"]
recursive = true
debounce_millis = 750
[[app.before]]
command = "echo"
args = ["preparing api-server"]
[[app.after]]
command = "echo"
args = ["cleaning up api-server"]
[app.env]
DATABASE_URL = "postgres://localhost/mydb"
LOG_LEVEL = "debug"
PORT = "8080"
DATA_DIR = "${HOME}/dev/api-data"
[[app]]
name = "worker"
access = "queue: amqp://localhost"
enabled = false
cargo = "frogfish-worker"
command = "sleep"
args = ["3600"]
depends_on = ["api-server"]
restart_on_exit = true
[app.env]
QUEUE_URL = "amqp://localhost"
WORKERS = "4"
API_URL = "http://${HOST}:8080"
[[app]]
name = "frontend"
access = "http://127.0.0.1:3000"
enabled = true
command = "sleep"
args = ["3600"]
[app.env]
NODE_ENV = "development"