Matecat is updated weekly.
These are the instructions for updating MateCat to the latest version

Update MySQL

Check MySQL version

Check MySQL version with:

mysql --version

If version < 5.6 continue with the next steps of this section and update MySQL else (version >=5.6) you can jump here


Backup data of your DB

If you have existing data in a MySql 5.5 database, it should be migrated automatically. Though it is always a good idea to make a backup before doing a major upgrade.
Make a backup of the data in your existing database:

mysqldump --lock-all-tables -u root -p --all-databases > dump.sql

Update MySQL to 5.6

If version < 5.6 you will need to update MySql to MySql 5.6.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install mysql-server-5.6

Restore your data

Then after installing the newest version, you can restore if needed by running:

mysql -u root -p < dump.sql

Go to top

Update MateCat code

Download the latest code updates


Update code

Navigate into your MateCat folder:

cd /home/matecat/cattool/

Update code:

git pull origin master

Resolve Git conflicts

If in the previous step you have Git conflict,
probably you have made some customizations or changes to the MateCat’s code base, you will need to save them separately and apply this changes again.
You can try to stash your code before pulling from the repository and apply it again, but it may cause some conflict and you will need to fix it manually.

git stash
git pull origin master
git stash pop

Update dependencies

Update the project dependencies and install everything that is missing

php composer.phar install

Update DB tables

This will launch some migration that will update your database structure:

./vendor/bin/phinx migrate -c inc/phinx.php

Update Javascript files

Navigate into your Grunt folder:

cd support_scripts/grunt

Update your js files:

sudo npm install
sudo grunt deploy

Go to top