Skip to content

How to Update your AVideo Platform

Daniel Neto edited this page Aug 6, 2020 · 15 revisions

There are two ways to do it:

1 - Git Pull (Recommended)

go to your AVideo dir and type git pull

cd /var/www/html/YouPHPTube/ && sudo git pull

In the simplest terms, git pull does a git fetch followed by a git merge.

You can do a git fetch at any time to update your remote-tracking branches under refs/remotes//.

This operation never changes any of your own local branches under refs/heads, and is safe to do without changing your working copy. I have even heard of people running git fetch periodically in a cron job in the background (although I wouldn't recommend doing this).

A git pull is what you would do to bring a local branch up-to-date with its remote version, while also updating your other remote-tracking branches.

Git Documentation

Problems:

Some users some times change a file, and can not do a git pull command, usually, they get this error:

... Please, commit your changes or stash them before you can merge. Aborting

the solution is to force to overwrite your files, you can do this command.

sudo git fetch --all && sudo git reset --hard origin/master

Check this video to know how to do it: https://tutorials.avideo.com/video/force-git-to-overwrite-files

2 - Download and Upload files

Use your favorite file transfer to download a master copy of AVideo and upload it to your site.

Always - Database-update!

Remember, always check your AVideo menu -> Update version to run a script update. Never skip a version!

Rollback the update

In case you need to rollback any update you have 2 options. In both cases, you will need to access your database

Rollback Option 1

First, connect into your Mysql

mysql -u root -p youPHPTube

you will be prompt for the MySQL password

then update the database

UPDATE configurations SET version = '6.5' WHERE id = 1

So your site will think it is on the version 6.5 and will open all your updates again

Rollback Option 2

You can manually run the updates.

Go to your update directory: cd /var/www/html/avideo/updatedb/

Execute a MySQL command to run the update mysql -u root -p youPHPTube < updateDb.v6.5.sql

You will be prompt for the update

Plugins Update

You can see available updates on the plugins on the plugins manager. below we show you an image so it may help you to understand the numbers:

  1. There are 3 versions to update on your Streamer platform, to update, use the instructions on this page.
  2. There is a newer version of your plugin on the market place, for this, you need to download the plugin again and overwrite the plugins file.
  3. You already have the newest files on your Streamer site but it requires some database update, so just click on the button to update it.

image

Clone this wiki locally