Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cf80270

Browse files
committed
added upgrading doc under install dir
1 parent b2f7cc5 commit cf80270

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

docs/install/upgrade.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Upgrade
2+
3+
This article walks you through how to upgrade your Coder server.
4+
5+
<blockquote class="danger">
6+
<p>
7+
Prior to upgrading a production Coder deployment, take a database snapshot since
8+
Coder does not support rollbacks.
9+
</p>
10+
</blockquote>
11+
12+
To upgrade your Coder server, simply reinstall Coder using your original method
13+
of [install](../install).
14+
15+
## Via install.sh
16+
17+
If you installed Coder using the `install.sh` script, re-run the below command
18+
on the host:
19+
20+
```shell
21+
curl -L https://coder.com/install.sh | sh
22+
```
23+
24+
The script will unpack the new `coder` binary version over the one currently
25+
installed. Next, you can restart Coder with the following commands (if running
26+
it as a system service):
27+
28+
```shell
29+
systemctl daemon-reload
30+
systemctl restart coder
31+
```
32+
33+
## Via docker-compose
34+
35+
If you installed using `docker-compose`, run the below command to upgrade the
36+
Coder container:
37+
38+
```shell
39+
docker-compose pull coder && docker-compose up -d coder
40+
```
41+
42+
## Via Kubernetes
43+
44+
See
45+
[Upgrading Coder via Helm](../install/kubernetes.md#upgrading-coder-via-helm).
46+
47+
## Via Windows
48+
49+
Download the latest Windows installer or binary from
50+
[GitHub releases](https://github.com/coder/coder/releases/latest), or upgrade
51+
from Winget.
52+
53+
```pwsh
54+
winget install Coder.Coder
55+
```

docs/manifest.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@
7777
"description": "Other installation methods",
7878
"path": "./install/other/README.md",
7979
"icon_path": "./images/icons/generic.svg"
80+
},
81+
{
82+
"title": "Upgrading",
83+
"description": "Learn how to upgrade Coder",
84+
"path": "./install/upgrade.md",
85+
"icon_path": "./images/icons/upgrade.svg"
8086
}
8187
]
8288
},

0 commit comments

Comments
 (0)