Running an out of date server stack can lead to security vulnerabilities and performance issues. Spin makes it easy to keep your server up to date. There are two categories of updates:
spin maintain focuses on server updates. Here's a quick look at what that looks like:

What we mean by application stack updates are things like Redis, Postgres, Node, PHP, etc. These are things you'll want to look at in your docker-compose.*.yml, composer.json, package.json, etc. Whenever you make a change, it will be version controlled so you can easily test and revert if needed.
Server updates are things like the underlying operating system, Docker, etc. It's important to keep these packages up to date as well. Thankfully Spin includes the spin maintain command which will take care of the heavy lifting for you.
# Update all servers
spin maintain
# Update a specific environment
spin maintain production
The above command will:
Troubleshooting Your Application
If you're reading this document, it probably means you're quite frustrated and looking for answers. In this guide, we'll give you some common troubleshooting tips and help you get back on track.
Generating a Secure SSH Key
Having a secure SSH key is super important. This allows us to authenticate to our servers using keys instead of insecure methods such as passwords.