Skip to content

Commit 5f4729b

Browse files
committed
Adjust b/g deployments doc
1 parent 6cbaad5 commit 5f4729b

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

docs/deploying.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,10 @@ server and routes requests into either the Blue or Green stack.
124124
On the server, create a simple `Caddyfile`:
125125

126126
```caddyfile title="Caddyfile"
127-
api.myapp.com {
128-
reverse_proxy blue_caddy:80
129-
}
127+
api.myapp.com reverse_proxy blue_caddy:80
130128
131129
# Optionally point a second hostname to the idle stack for testing
132-
next.myapp.com {
133-
reverse_proxy blue_caddy:80
134-
}
130+
next.myapp.com reverse_proxy blue_caddy:80
135131
```
136132

137133
The front proxy manages TLS, so give it a persistent volume for certificates:
@@ -165,13 +161,8 @@ docker compose -p green up -d
165161
Edit the front proxy's config to flip traffic:
166162

167163
```caddyfile title="Caddyfile"
168-
api.myapp.com {
169-
reverse_proxy green_caddy:80
170-
}
171-
172-
next.myapp.com {
173-
reverse_proxy blue_caddy:80
174-
}
164+
api.myapp.com reverse_proxy green_caddy:80
165+
next.myapp.com reverse_proxy blue_caddy:80
175166
```
176167

177168
Restart Caddy:

0 commit comments

Comments
 (0)