Now that I’m nearly finished migrating from v4 to v5, I have some clarification questions about software updates for InvoiceNinja v5. I’m unable to run the built in updater (most likely due to memory limits), so I’m looking into updating the way I always have with v4; the file copy route.
Question 1: Is there a certain stable update version scheme I should wait for?
Are there specific updates, such as, every 5.4.0, 5.5.0, 5.6.0, etc. that are considered the “stable” releases? Or is every release a stable one? The only reason I ask is because looking at the InvoiceNinja repository, there’s an incredible amount of releases in short time spans (six releases in the last 10 days), leading me to wonder which are the most tested versions. Are there certain ones I should wait for, or would you say it’s safe to go ahead and update any time a new version is available?
Question 2: Is upgrading from any v5 version to another v5 version always supported, regardless of gap?
For example, if I want to upgrade to a future release of 5.6.12 (doesn’t exist yet), should I first upgrade to 5.6.0, and then to 5.6.12? Or is any path okay, such as 5.5.102 to 5.6.12?
Question 3: When updating, should I download the InvoiceNinja.zip file or one of the Source Code files (zip or tar.gz)?
I’ve read the Self Host Updating guide here, which says:
The 2 “Source code” files are the correct ones, the other is the fully built package which includes the “.env” file, if that file is overwritten, then your configuration is also gone
This seems odd to me for a couple reasons:
- Neither the InvoiceNinja.zip or the Source Code files have a .env file, just the .env.example file, so nothing will ever be overwritten.
- When comparing the InvoiceNinja.zip file to the Source Code files, it appears the full InvoiceNinja.zip file contains the Vendor folder, where as the Source Code files do not. If I download the full InvoiceNinja.zip file for version 5.5.102, and the InvoiceNinja.zip file for a release from a couple weeks ago, the vendor folder is a different size and contains different amounts of files. Would this not indicate there were changes to the vendor folder as well, and therefore, when updating, I should always use the InvoiceNinja.zip full install file and replace everything (leaving behind the .env file with my configurations)?
Any clarification would be greatly appreciated!