I’m willing to update from 2.8.1 to 2.8.1. I read the guide but didn’t understand how
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?
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)
$ 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
I’m not sure, the app loads the version number from app/Http/routes.php.
rsync -vtr . /var/www/YOUR.WEBSITE.COM/
- You download the zip from the website, not git clone the repo.
- Unzipping the zip creates the folder ninja (which it typically does).
- 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.