User Tools

Site Tools


computing:peertube

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
computing:peertube [2024/12/25 01:00] oemb1905computing:peertube [2025/04/19 01:44] (current) oemb1905
Line 97: Line 97:
   * GNU/Linux Tube: https://gnulinux.tube/c/pubglug/videos    * GNU/Linux Tube: https://gnulinux.tube/c/pubglug/videos 
  
-So far so goodbut so what?! Now, when the physical host crashes and/or any VMs fail, I have two ways to restore the instances: 1) A hot spare and 2) dedicated remote hostingAlright, will something fail so we can test this?! Noooo ... I jest ... please everything just work. I don't need more stress!+Okay, the instances are stable nowHere is how we can upgrade:
  
- --- //[[alerts@haacksnetworking.org|oemb1905]] 2024/12/25 00:57//+  # upgrade instructions, stop service, meet node dependency req, navigate to scripts, run in debug mode and monitor its output 
 +  sudo systemctl stop peertube 
 +  sudo apt update 
 +  curl -sL https://deb.nodesource.com/setup_20.x | sudo bash - 
 +  sudo apt install -y nodejs 
 +  sudo systemctl stop peertube 
 +  cd /var/www/peertube/peertube-latest/scripts 
 +  sudo -H -u peertube bash -x ./upgrade.sh 
 +  sudo chown peertube:peertube /var/www/peertube/config/production.yaml 
 +  sudo systemctl start peertube 
 +  # need to tailor this to each upgrade and use-case, this is an EXAMPLE only of updating yarn and its dependencies 
 +  sudo systemctl stop peertube 
 +  cd /var/www/peertube/peertube-latest 
 +  #sudo -u peertube yarn add @typescript-eslint/parser@^7.0.0 @typescript-eslint/eslint-plugin@^6.4.0 chai@4.3.10 openapi-types@>=7 
 +  #sudo -u peertube yarn remove bare-fs bare-os 
 +  sudo -u peertube yarn install --pure-lockfile 
 +  cd client 
 +  sudo -u peertube yarn install --pure-lockfile 
 +  sudo systemctl start peertube 
 +  # restore favicon and primary logo 
 +  cd /var/www/peertube/versions/peertube-v7.1.1/client/dist/assets/images 
 +  mv logo.svg logo.svg.original.bak 
 +  mv favicon.png favicon.original.bak 
 +  cp -ar /root/logo.svg /root/favicon.png . 
 + 
 +Adjust to your needs of course ;) 
 + 
 + --- //[[alerts@haacksnetworking.org|oemb1905]] 2025/04/18 20:32//
computing/peertube.1735088403.txt.gz · Last modified: 2024/12/25 01:00 by oemb1905