How to Update (2.8.1 to 2.8.2)

Hi,

I’m willing to update from 2.8.1 to 2.8.1. I read the guide but didn’t understand how :frowning:

To update the app you just need to copy over the latest code. The app tracks the current version in a file called version.txt, if it notices a change it loads /update to run the database migrations.

Just replace all files with the latest?

Regards!

Yup, just copy over the files.

Thanks! It sounds so easy …thought I was reading something wrong.

Dummy question alert… what would be the safest/better way to copy over the files? (via SSH)

Used:

$ wget https://dl.dropboxusercontent.com/u/2909575/ninja-v2.8.2.zip
$ unzip ninja-v2.8.2.zip
$ cp ninja/* . -frv (verbose, just to check if works... unnecessary)

It still said 2.8.1 :frowning:

I’m not sure, the app loads the version number from app/Http/routes.php.

I used:

unzip ninja-VERSION.GOES.HERE.zip
cd ninja
rsync -vtr . /var/www/YOUR.WEBSITE.COM/

This assumes:

  1. You download the zip from the website, not git clone the repo.
  2. Unzipping the zip creates the folder ninja (which it typically does).
  3. The “.” in the rsync command refers to the everything you just unzipped as the source, this method also includes hidden files.

You will need to re-set permissions on the files after doing this (in the location you just copied the files to), which is pretty easy, but worth saying.