snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

update/patches/upgrading

Open joseph707 opened this issue 12 years ago • 11 comments

hi snipe

thanks for such an excellent product that does the job of it inventory. I have installed the product and it is working excellent with reports, assets etc. This is not an issue but an help request.

however, I see couple of the updates (patches) that you have made and I want to upgrade our current snipe-it. Our installation is as follows

  1. Uses snipe-it version alpha package that I downloaded last week
  2. uses MySQL
  3. uses PHP 5.4
  4. uses IIS 7 on windows 7 64bit OS

briefly, can you guide me how to update our version with all the patches. Also, I have backed up our MYSQL database. I am on a windows platform.

Thanks and appreciate it a lot of your effort and of the others contributing to this.

joseph707 avatar Oct 29 '14 19:10 joseph707

Hi @joseph707 - have you looked at the upgrading documentation? http://docs.snipeitapp.com/upgrading/README.html

The latest files are on the develop branch right now, with some new features including image uploads for asset models and user avatars, plus some bug fixes.

If you downloaded the original as a .zip or tarball, just download the latest and replace those files. If you did a git clone instead, just checkout to whatever branch you want to use and do a git pull.

snipe avatar Oct 29 '14 19:10 snipe

hi snipe, I had a look at this but I am new to all of this. I learnt to install snipe from your documentation, going stage by stage and checked on google the steps to using MYSQL. all this in 2 days time. good experience. now I didn't understand this git clone and git pull, but will try to learn those.

But I didn't understand the documentation. as in this part -->

" Whenever you pull down a new version from master or develop , or when you grab the latest official release, make sure to run the following commands via command line: php composer.phar dump-autoload php artisan migrate "

Don't know where to use these commands or is it somewhere inside the package? If you can give me a start on the first few steps (short sentence), I would try to learn the rest myself.

thanks once again.

joseph707 avatar Oct 29 '14 20:10 joseph707

Hi @joseph707 - you run those commands via command line, just like you did to install the application. (Remember when you ran php artisan app:installto set it up?)

So you just open a terminal prompt, move to the project root, and run those commands after you've replaced the old files with the new files.

snipe avatar Oct 29 '14 20:10 snipe

hi snipe thanks for the guidance. I used the composer self update and it brought up the items to update. All went good. however, I get this error when creating or updating Asset Models page

capture222 Thanks for the guidance in helping me to install the new updates.

joseph707 avatar Oct 30 '14 10:10 joseph707

Hey @joseph707 - what version of PHP are you running?

snipe avatar Oct 30 '14 10:10 snipe

hi snipe PHP Version 5.3.28 captures

joseph707 avatar Oct 30 '14 10:10 joseph707

Ah, the minimum requirement for Snipe-IT is PHP 5.4. Is it possible to upgrade your version of PHP?

snipe avatar Oct 30 '14 10:10 snipe

hi snipe Yes, I can upgrade. I will update the PHP version. Should I update anywhere else or should I specify anything special on the php.ini files, if any.

joseph707 avatar Oct 30 '14 10:10 joseph707

Nothing comes to mind. The only reason really for requiring 5.4 is that short array notation using [] (which you just encountered).

snipe avatar Oct 30 '14 10:10 snipe

Hi snipe.

Perfect. It works. I see the upload image button now. It is correct. Thanks regards joseph

joseph707 avatar Oct 30 '14 11:10 joseph707

Awesome, glad you got it working!

snipe avatar Oct 30 '14 11:10 snipe