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: README.md
+19-6Lines changed: 19 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -155,7 +155,7 @@ If `database` fails to come up, `web` will remain stopped and log the dependency
155
155
156
156
#### Rolling Deployments
157
157
158
-
Services can opt into rolling restarts so existing instances keep serving traffic until replacements are healthy. Add a `deployment` block to configure the behavior:
158
+
Services can opt into rolling restarts. For single-host web services that bind a fixed port, use the `blue_green` block so the replacement starts on an alternate slot and traffic is switched after health checks.
- `blue_green.state_path`— optional path for persisted active-slot state.
193
+
194
+
If any rolling step fails, systemg restores the original instance and surfaces the error so unhealthy builds never replace running services. For deployment scripts, use `sysg restart --daemonize` so supervisor state is restored even if detection fails.
Rolling deployments start the new instance, wait for health checks, then stop the old instance. The `grace_period` allows in-flight requests to complete.
226
+
Rolling deployments start the new instance, wait for health checks, then stop the old instance. For single-host zero-downtime with fixed ports, use `blue_green` so traffic can be switched between two slots.
220
227
221
228
## Field reference
222
229
223
230
### Service fields
224
231
232
+
Primary keys available on each service definition.
233
+
225
234
| Field | Type | Description |
226
235
|-------|------|-------------|
227
236
| `command` | string | Command to execute (required) |
@@ -237,13 +246,17 @@ Rolling deployments start the new instance, wait for health checks, then stop th
237
246
238
247
### Environment object
239
248
249
+
Environment sources and inline overrides merged into the service process environment.
0 commit comments