followup to @d1str0's #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.5 KiB
Upgrade
This article describes how to upgrade your Coder server.
Caution
Prior to upgrading a production Coder deployment, take a database snapshot since Coder does not support rollbacks.
Reinstall Coder to upgrade
To upgrade your Coder server, reinstall Coder using your original method of install.
Coder install script
-
If you installed Coder using the
install.sh
script, re-run the below command on the host:curl -L https://coder.com/install.sh | sh
-
If you're running Coder as a system service, you can restart it with
systemctl
:systemctl daemon-reload systemctl restart coder
Other upgrade methods
docker-compose
If you installed using docker-compose
, run the below command to upgrade the
Coder container:
docker-compose pull coder && docker-compose up -d coder
Kubernetes
Coder AMI on AWS
-
Run the Coder installation script on the host:
curl -L https://coder.com/install.sh | sh
The script will unpack the new
coder
binary version over the one currently installed. -
Restart the Coder system process with
systemctl
:systemctl daemon-reload systemctl restart coder
Windows
Download the latest Windows installer or binary from GitHub releases, or upgrade from Winget.
winget install Coder.Coder