# Update

Depending on which path you have taken for backend installation before with the current server you can update your backend to the latest version from the same path as guided below.

### Backend

To update your server, begin by stopping the services with the following command:

```bash
docker compose down
```

By running the installation script, your setup will be updated to the latest version and configurations. Be aware that this will overwrite any existing modifications to your docker-compose.yaml or nginx configurations.

```bash
curl -sSL https://uploads.ridy.io/install.sh | sh
```

Log in to the dashboard. If configuration is needed, you'll be redirected to the configuration page. If any services malfunction after an update, restarting Nginx usually resolves it, as sometimes Nginx fails to locate the services and defaults to the nearest alternative.

```bash
docker restart root-nginx-1
```

### Client

With each new version, client codes are usually subject to updates so it would be better if you had your Version Control system in place with one branch being the files downloaded from Codecanyon and the other one your customizations. This way you could release with each new release that comes and resolve conflicts easier.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://flutter-docs.taxi.ridy.io/installation/update.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
