-
Notifications
You must be signed in to change notification settings - Fork 976
How to Update your AVideo Platform
There are two ways to update the Streamer and Encoder. It's important to keep these components up to date to avoid problems with the encoding process.
Manually copying files using FTP or other file transfer tools can be risky because it may cause conflicts with existing files and directories. It can also be time-consuming and error-prone, especially if you have to copy multiple files or directories.
Using Git pull, on the other hand, guarantees that you have the latest version of AVideo and all its dependencies. Git pull also ensures that all changes are applied in a consistent and organized way, making it easier to track and manage updates.
Additionally, when you manually copy files, it can be difficult to identify which files were modified or deleted, which can cause problems down the line. Using Git pull allows you to see exactly what changes were made and when they were made, which makes it easier to identify and fix any issues that may arise.
Overall, using Git pull is the recommended method for updating AVideo because it ensures that you have the latest version of the software and all its dependencies, and it simplifies the update process by applying changes in a consistent and organized way.
The easiest way to update AVideo is by using Git pull. Here's how you can update the Streamer:
cd /var/www/html/AVideo/
sudo git pull
To update the Encoder, use the same command:
cd /var/www/html/AVideo/Encoder
sudo git pull
Git pull fetches the latest changes from the remote repository and merges them with your local copy. You can use git fetch
to update your remote-tracking branches, without changing your local working copy.
If you encounter an error when running git pull
, you can force Git to overwrite your local files with the remote copy by running this command:
sudo git fetch --all && sudo git reset --hard origin/master
For more information about Git pull, see the Git documentation.
After updating AVideo, be sure to update the database. Check the AVideo menu -> Update version option and run the script update. Don't skip any versions!
Another way to update AVideo is by downloading a master copy from GitHub and uploading it to your site using your preferred file transfer method.
Whenever you update AVideo, it's crucial to also check your plugins for any available updates or new tables to install.
To check if there are updates available for your plugins, please follow the steps as shown in the GIF below:
Remember to run the install tables even if the specific plugin is not enabled. This is important to keep all functionalities running smoothly and to be prepared for any potential future plugin activations.
For the plugins that you've purchased, updates are released to improve functionality and add new features.
To access these updates, please visit our marketplace at youphp.tube/marketplace. Make sure to log in to your account. Once logged in, you'll be able to see any available purchased plugins.
You will be able to download it directly from the marketplace. Always make sure you have the latest versions to benefit from all the updates and enhancements we make to our plugins.
If you need to rollback an update, you have two options:
First, connect to your MySQL:
mysql -u root -p youPHPTube
Then, update the database:
UPDATE configurations SET version = '6.5' WHERE id = 1
This will set your site's version to 6.5 and allow you to run updates again.
You can manually run the updates. Navigate to the 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 can check for available updates for your plugins in the Plugins Manager. The following image can help you understand the different scenarios:
Here are the different scenarios and how to handle them:
- Multiple versions available: If there are multiple versions available, you can update them by following the instructions on this page.
- New version available in the marketplace: If there is a newer version of the plugin in the marketplace, you will need to download the plugin again and overwrite the existing files.
- Newest version already installed, but database needs update: If you already have the newest files on your Streamer site but it requires some database update, simply click on the button to update it.