Files
Docker-Chevereto/docs/UPDATING.md

58 lines
1.5 KiB
Markdown
Raw Normal View History

2021-06-27 13:14:27 -04:00
# Updating
2024-02-09 11:46:51 -03:00
## Chevereto
2024-02-09 11:51:01 -03:00
To update instances to a new Chevereto version re-build the container image (see [BUILDING](BUILDING.md)) to reflect the target version.
2024-02-09 11:46:51 -03:00
2024-02-09 11:51:01 -03:00
### One-click Chevereto updating
2024-02-09 11:46:51 -03:00
Run the following command to update all instances. The process will swap every instance to the new container image and perform the necessary database updates.
```sh
2024-02-14 10:46:26 -03:00
make update
2024-02-09 11:46:51 -03:00
```
2024-02-09 11:51:01 -03:00
### Manual Chevereto updating
2024-02-09 11:46:51 -03:00
Swap to the new container image by down plus up-d by passing the `NAMESPACE` of your project. Once done, execute the `app/bin/legacy -C update` command to perform the necessary database updates.
```sh
make down NAMESPACE=yourproject
make up-d NAMESPACE=yourproject
make exec NAMESPACE=yourproject COMMAND="app/bin/legacy -C update"
```
2024-02-09 11:51:01 -03:00
## Repository
2022-04-02 19:59:46 -03:00
2024-02-09 11:51:01 -03:00
To update your containers to the latest version of this repository make sure to run for every instance:
2022-10-16 11:24:28 -03:00
```sh
2024-02-09 11:51:01 -03:00
make down NAMESPACE=yourproject
2022-10-16 11:24:28 -03:00
```
2022-11-12 18:22:28 -03:00
💡 If you forget to run this you can rollback the repo and execute the above command.
2022-10-16 11:24:28 -03:00
2024-02-09 11:51:01 -03:00
### Manual repo updating
2021-08-03 12:41:26 -04:00
2022-04-03 11:05:36 -04:00
Pull this updated repo changes in your fork.
2022-11-12 18:22:28 -03:00
```sh
git fetch --tags -f && git pull
```
2024-02-09 11:51:01 -03:00
### GitHub one-click repo updating
2021-06-27 13:14:27 -04:00
1. Go to **Actions**
2021-08-03 12:33:53 -04:00
2. Select **Update** under **Workflows**
2021-06-27 13:14:27 -04:00
3. Click on **Run Workflow** and confirm
![Update template](src/update.png)
🤖 When done **a bot will create a pull request** in your repo so you can review and confirm the changes.
2021-08-21 11:49:01 -04:00
![Update merge](src/update-merge.png)
2022-04-02 19:59:46 -03:00
2024-02-09 11:46:51 -03:00
## Troubleshooting
2022-04-02 19:59:46 -03:00
2022-10-16 11:24:28 -03:00
Refer to [persistance troubleshoot](PERSISTENT.md#no-persistence) If the system prompts to re-install.