funkwhale/docs/administrator_documentation/upgrade_docs/debian.md

66 wiersze
1.7 KiB
Markdown
Czysty Zwykły widok Historia

2022-07-01 09:02:29 +00:00
# Upgrade your Debian Funkwhale installation
2022-11-22 20:52:06 +00:00
If you installed Funkwhale following the [Debian guide](../installation_docs/debian.md), follow these steps to upgrade.
2022-07-01 09:02:29 +00:00
## Cleanup old funkwhale files
1. Stop the Funkwhale services.
2022-10-26 20:19:16 +00:00
```{code-block} sh
sudo systemctl stop funkwhale.target
2022-07-01 09:02:29 +00:00
```
2. Navigate to your Funkwhale directory.
2022-07-01 09:02:29 +00:00
2022-10-26 20:19:16 +00:00
```{code-block} sh
2022-07-01 09:02:29 +00:00
cd /srv/funkwhale
```
3. Remove the old files.
2022-07-01 09:02:29 +00:00
2022-10-26 20:19:16 +00:00
```{code-block} sh
sudo rm -Rf api/* front/* venv
2022-07-01 09:02:29 +00:00
```
## Download Funkwhale
1. Export the Funkwhale version you want to update to. You'll use this in the rest of the commands in this guide.
2022-07-01 09:02:29 +00:00
```{parsed-literal}
export FUNKWHALE_VERSION={sub-ref}`version`
```
2023-01-16 12:08:09 +00:00
2. Follow the [Download Funkwhale](../installation_docs/debian.md#3-download-funkwhale) instructions in the installation guide.
2022-07-01 09:02:29 +00:00
2023-01-16 12:08:09 +00:00
3. Follow the [Install the Funkwhale API](../installation_docs/debian.md#4-install-the-funkwhale-api) instructions in the installation guide.
2022-07-01 09:02:29 +00:00
## Update your Funkwhale instance
Once you have downloaded the new files, you can update your Funkwhale instance. To do this:
1. Install or upgrade all OS dependencies using the dependencies script.
2022-10-26 20:19:16 +00:00
```{code-block} sh
2022-07-01 09:02:29 +00:00
sudo api/install_os_dependencies.sh install
```
2. Collect the new static files to serve.
2022-07-01 09:02:29 +00:00
2022-10-26 20:19:16 +00:00
```{code-block} sh
sudo venv/bin/funkwhale-manage collectstatic --no-input
2022-07-01 09:02:29 +00:00
```
3. Apply new database migrations.
2022-07-01 09:02:29 +00:00
2022-10-26 20:19:16 +00:00
```{code-block} sh
sudo -u funkwhale venv/bin/funkwhale-manage migrate
2022-07-01 09:02:29 +00:00
```
4. Restart the Funkwhale services.
2022-07-01 09:02:29 +00:00
2022-10-26 20:19:16 +00:00
```{code-block} sh
2022-07-01 09:02:29 +00:00
sudo systemctl start funkwhale.target
```
That's it! You've updated your Funkwhale pod. You should now see the new version running in your web browser.