Skip to content

Commit bd243c1

Browse files
EdwardAngertd1str0
andauthored
docs: add AWS AMI upgrade instructions (coder#16973)
followup to @d1str0's coder#16937 > Adds a small note for those who just used the AWS AMI for their initial installation. This PR rearranges the Upgrade doc to use tabs for each section + adds AWS AMI [preview](https://coder.com/docs/@upgrade-tabs/install/upgrade) --------- Co-authored-by: Brady Sullivan <brady@bsull.com> Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com>
1 parent 4a54802 commit bd243c1

File tree

1 file changed

+42
-18
lines changed

1 file changed

+42
-18
lines changed

docs/install/upgrade.md

Lines changed: 42 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,37 @@
11
# Upgrade
22

3-
This article walks you through how to upgrade your Coder server.
3+
This article describes how to upgrade your Coder server.
44

55
> [!CAUTION]
66
> Prior to upgrading a production Coder deployment, take a database snapshot since
77
> Coder does not support rollbacks.
88
9-
To upgrade your Coder server, simply reinstall Coder using your original method
9+
## Reinstall Coder to upgrade
10+
11+
To upgrade your Coder server, reinstall Coder using your original method
1012
of [install](../install).
1113

12-
## Via install.sh
14+
### Coder install script
1315

14-
If you installed Coder using the `install.sh` script, re-run the below command
15-
on the host:
16+
1. If you installed Coder using the `install.sh` script, re-run the below command
17+
on the host:
1618

17-
```shell
18-
curl -L https://coder.com/install.sh | sh
19-
```
19+
```shell
20+
curl -L https://coder.com/install.sh | sh
21+
```
2022

21-
The script will unpack the new `coder` binary version over the one currently
22-
installed. Next, you can restart Coder with the following commands (if running
23-
it as a system service):
23+
1. If you're running Coder as a system service, you can restart it with `systemctl`:
2424

25-
```shell
26-
systemctl daemon-reload
27-
systemctl restart coder
28-
```
25+
```shell
26+
systemctl daemon-reload
27+
systemctl restart coder
28+
```
29+
30+
### Other upgrade methods
31+
32+
<div class="tabs">
2933

30-
## Via docker-compose
34+
### docker-compose
3135

3236
If you installed using `docker-compose`, run the below command to upgrade the
3337
Coder container:
@@ -36,12 +40,30 @@ Coder container:
3640
docker-compose pull coder && docker-compose up -d coder
3741
```
3842

39-
## Via Kubernetes
43+
### Kubernetes
4044

4145
See
4246
[Upgrading Coder via Helm](../install/kubernetes.md#upgrading-coder-via-helm).
4347

44-
## Via Windows
48+
### Coder AMI on AWS
49+
50+
1. Run the Coder installation script on the host:
51+
52+
```shell
53+
curl -L https://coder.com/install.sh | sh
54+
```
55+
56+
The script will unpack the new `coder` binary version over the one currently
57+
installed.
58+
59+
1. Restart the Coder system process with `systemctl`:
60+
61+
```shell
62+
systemctl daemon-reload
63+
systemctl restart coder
64+
```
65+
66+
### Windows
4567

4668
Download the latest Windows installer or binary from
4769
[GitHub releases](https://github.com/coder/coder/releases/latest), or upgrade
@@ -50,3 +72,5 @@ from Winget.
5072
```pwsh
5173
winget install Coder.Coder
5274
```
75+
76+
</div>

0 commit comments

Comments
 (0)