You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/examples/environments.md
+2-27Lines changed: 2 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ A platform has two services. Each service needs different variables per environm
14
14
15
15
Profile-level environments define shared variables and tasks that apply across all repos. Repo-specific variables and tasks are defined in each repo's own `raid.yaml`.
16
16
17
-
```yaml title="platform-profile.yaml"
17
+
```yaml title="platform.raid.yaml"
18
18
name: platform
19
19
20
20
repositories:
@@ -124,32 +124,7 @@ raid env
124
124
raid env list
125
125
```
126
126
127
-
### What `raid env staging` does
128
-
129
-
```
130
-
Applying environment 'staging'...
131
-
Switched to staging
132
-
133
-
Running repo environment tasks...
134
-
✓ api applied 4 variables
135
-
✓ frontend applied 2 variables
136
-
137
-
Done.
138
-
```
139
-
140
-
For production, the `Confirm` tasks gate the switch:
141
-
142
-
```
143
-
Applying environment 'production'...
144
-
? Switch ALL services to production? (y/N) y
145
-
146
-
Running repo environment tasks...
147
-
? Point API at production database? (y/N) y
148
-
✓ [api] rotate-api-key.sh
149
-
? Point frontend at production APIs? (y/N) y
150
-
151
-
Done.
152
-
```
127
+
For production, the `Confirm` tasks in the profile and each repo's `raid.yaml` will gate the switch before any variables or tasks are applied.
0 commit comments