1
1
# Upgrade
2
2
3
- This article walks you through how to upgrade your Coder server.
3
+ This article describes how to upgrade your Coder server.
4
4
5
5
> [ !CAUTION]
6
6
> Prior to upgrading a production Coder deployment, take a database snapshot since
7
7
> Coder does not support rollbacks.
8
8
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
10
12
of [ install] ( ../install ) .
11
13
12
- ## Via install.sh
14
+ ### Coder install script
13
15
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:
16
18
17
- ``` shell
18
- curl -L https://coder.com/install.sh | sh
19
- ```
19
+ ``` shell
20
+ curl -L https://coder.com/install.sh | sh
21
+ ```
20
22
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 ` :
24
24
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 " >
29
33
30
- ## Via docker-compose
34
+ ### docker-compose
31
35
32
36
If you installed using ` docker-compose ` , run the below command to upgrade the
33
37
Coder container:
@@ -36,12 +40,30 @@ Coder container:
36
40
docker-compose pull coder && docker-compose up -d coder
37
41
```
38
42
39
- ## Via Kubernetes
43
+ ### Kubernetes
40
44
41
45
See
42
46
[ Upgrading Coder via Helm] ( ../install/kubernetes.md#upgrading-coder-via-helm ) .
43
47
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
45
67
46
68
Download the latest Windows installer or binary from
47
69
[ GitHub releases] ( https://github.com/coder/coder/releases/latest ) , or upgrade
@@ -50,3 +72,5 @@ from Winget.
50
72
``` pwsh
51
73
winget install Coder.Coder
52
74
```
75
+
76
+ </div >
0 commit comments