v2.31.0-dev21 b59533b

restart.md RawHistoryFolder

Restart Command

Restart a running container for a route.

gordon restart

Synopsis

gordon restart <domain> [options]

Arguments

Argument Description
<domain> The route domain to restart

Options

Option Description
--with-attachments Also restart attached services (databases, caches)
--remote, -r Remote name or URL (e.g., prod, https://gordon.mydomain.com)
--token Authentication token for remote

Description

Restarts the container for the specified route. This is useful after updating environment variables or secrets without performing a full redeploy.

When --with-attachments is set, Gordon also restarts any attachment containers for the route.

Examples

# Restart main container only
gordon restart myapp.example.com

# Restart with attachments
gordon restart myapp.example.com --with-attachments

Notes

  • Local mode works when run on the Gordon host. It uses the same deploy-signal path as gordon deploy <domain>.
  • --with-attachments is only supported in remote mode.
  • In remote mode, target your Gordon admin endpoint (for example https://gordon.example.com), not the registry host (for example https://reg.example.com).
source
1# Restart Command
2
3Restart a running container for a route.
4
5## gordon restart
6
7### Synopsis
8
9```bash
10gordon restart <domain> [options]
11```
12
13### Arguments
14
15| Argument | Description |
16|----------|-------------|
17| `<domain>` | The route domain to restart |
18
19### Options
20
21| Option | Description |
22|--------|-------------|
23| `--with-attachments` | Also restart attached services (databases, caches) |
24| `--remote, -r` | Remote name or URL (e.g., prod, https://gordon.mydomain.com) |
25| `--token` | Authentication token for remote |
26
27### Description
28
29Restarts the container for the specified route. This is useful after updating
30environment variables or secrets without performing a full redeploy.
31
32When `--with-attachments` is set, Gordon also restarts any attachment containers
33for the route.
34
35### Examples
36
37```bash
38# Restart main container only
39gordon restart myapp.example.com
40
41# Restart with attachments
42gordon restart myapp.example.com --with-attachments
43```
44
45### Notes
46
47- Local mode works when run on the Gordon host. It uses the same deploy-signal path as `gordon deploy <domain>`.
48- `--with-attachments` is only supported in remote mode.
49- In remote mode, target your Gordon admin endpoint (for example `https://gordon.example.com`), not the registry host (for example `https://reg.example.com`).
50
51## Related
52
53- [CLI Overview](./index.md)
54- [Secrets Command](./secrets.md)

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 7

Tags 106

↑↓ moveenter openesc close