Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
funkwhale
funkwhale
Commits
6e04858b
Commit
6e04858b
authored
2 years ago
by
Ciarán Ainsworth
Committed by
Marge
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
chore(docs): add systemd steps to Debian upgrade
Part-of: <
!2423
>
parent
19a1dde9
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!2432
Merge 1.3.0 into stable
,
!2423
Add systemd steps to Debian upgrade
Pipeline
#30367
passed with warnings
2 years ago
Stage: review
Stage: lint
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changes/changelog.d/1966.doc
+1
-0
1 addition, 0 deletions
changes/changelog.d/1966.doc
docs/administrator/upgrade/debian.md
+25
-14
25 additions, 14 deletions
docs/administrator/upgrade/debian.md
with
26 additions
and
14 deletions
changes/changelog.d/1966.doc
0 → 100644
+
1
−
0
View file @
6e04858b
Add systemd update instructions to Debian upgrade instructions (#1966)
This diff is collapsed.
Click to expand it.
docs/administrator/upgrade/debian.md
+
25
−
14
View file @
6e04858b
...
...
@@ -6,20 +6,20 @@ If you installed Funkwhale following the [Debian guide](../installation/debian.m
1.
Stop the Funkwhale services.
```
{
co
de-block} sh
sudo
systemctl stop funkwhale.target
```
co
nsole
#
systemctl stop funkwhale.target
```
2.
Navigate to your Funkwhale directory.
```
{
co
de-block} sh
cd /srv/funkwhale
```
co
nsole
#
cd
/srv/funkwhale
```
3.
Remove the old files.
```
{
co
de-block} sh
sudo
rm -Rf api/* front/* venv
```
co
nsole
#
rm
-Rf
api/
*
front/
*
venv
```
## Download Funkwhale
...
...
@@ -33,6 +33,17 @@ If you installed Funkwhale following the [Debian guide](../installation/debian.m
2.
Follow the
[
Download Funkwhale
](
../installation/debian.md#3-download-funkwhale
)
instructions in the installation guide.
3.
Follow the
[
Install the Funkwhale API
](
../installation/debian.md#4-install-the-funkwhale-api
)
instructions in the installation guide.
## Upgrade your systemd unit files
To make sure you receive any updates made to unit files, download the latest versions from the repo.
```
console
#
curl
-L
-o
"/etc/systemd/system/funkwhale.target"
"https://dev.funkwhale.audio/funkwhale/funkwhale/raw/
$FUNKWHALE_VERSION
/deploy/funkwhale.target"
#
curl
-L
-o
"/etc/systemd/system/funkwhale-server.service"
"https://dev.funkwhale.audio/funkwhale/funkwhale/raw/
$FUNKWHALE_VERSION
/deploy/funkwhale-server.service"
#
curl
-L
-o
"/etc/systemd/system/funkwhale-worker.service"
"https://dev.funkwhale.audio/funkwhale/funkwhale/raw/
$FUNKWHALE_VERSION
/deploy/funkwhale-worker.service"
#
curl
-L
-o
"/etc/systemd/system/funkwhale-beat.service"
"https://dev.funkwhale.audio/funkwhale/funkwhale/raw/
$FUNKWHALE_VERSION
/deploy/funkwhale-beat.service"
```
## Update your reverse proxy configuration
To ensure your reverse proxy is up-to-date with changes, you should regenerate your Nginx configuration with each upgrade. To do this:
...
...
@@ -54,26 +65,26 @@ Once you have downloaded the new files, you can update your Funkwhale instance.
1.
Install or upgrade all OS dependencies using the dependencies script.
```
{
co
de-block} sh
sudo
api/install_os_dependencies.sh install
```
co
nsole
#
api/install_os_dependencies.sh
install
```
2.
Collect the new static files to serve.
```
{
co
de-block} sh
sudo
venv/bin/funkwhale-manage collectstatic --no-input
```
co
nsole
#
venv/bin/funkwhale-manage collectstatic
--no-input
```
3.
Apply new database migrations.
```
{
co
de-block} sh
sudo -u funkwhale venv/bin/funkwhale-manage migrate
```
co
nsole
#
sudo
-u
funkwhale venv/bin/funkwhale-manage migrate
```
4.
Restart the Funkwhale services.
```
{
co
de-block} sh
sudo
systemctl start funkwhale.target
```
co
nsole
#
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.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment