2017-01-26 17:19:44 +02:00
Update
======
2018-05-08 23:07:33 +03:00
.. NOTE :: We recommend backing up your database with mysqldump before updating the app.
2017-01-26 17:19:44 +02:00
2017-01-26 20:08:48 +02:00
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.
2017-01-26 17:19:44 +02:00
2017-08-17 10:35:51 +03:00
https://download.invoiceninja.com
2018-02-14 15:39:35 +02:00
If you have trouble updating you can manually load /update to check for errors.
2017-11-07 10:55:45 +02:00
.. TIP :: We recommend using this `shell script <https://pastebin.com/j657uv9A> `_ to automate the update process, run it as a daily cron to automatically keep your app up to date.
2017-06-26 21:52:14 +03:00
2017-06-04 16:05:51 +03:00
If you're moving servers make sure to copy over the .env file.
2018-02-14 15:39:35 +02:00
You can manually run the update with the following commands. Once completed add `` ?clear_cache=true `` to the end of the URL to clear the application cache.
2017-12-06 14:04:52 +02:00
2017-01-26 17:37:35 +02:00
.. code-block :: shell
2017-01-26 17:19:44 +02:00
2017-01-26 17:37:35 +02:00
composer dump-autoload --optimize
php artisan optimize --force
php artisan migrate
php artisan db:seed --class=UpdateSeeder
2017-01-26 17:19:44 +02:00
2018-02-14 15:39:35 +02:00
A common error with shared hosting is "open_basedir restriction in effect", if you see this you'll need to either temporarily modify your open_basedir settings or run the update from the command line.
2017-03-22 13:58:40 +02:00
.. NOTE :: If you've downloaded the code from GitHub you also need to run `` composer install ``
2017-05-22 12:46:01 +03:00
.. TIP :: You can see the detailed changes for each release on our `GitHub release notes <https://github.com/invoiceninja/invoiceninja/releases> `_ .
2018-04-08 11:00:09 +03:00
Version 4.3
"""""""""""
You may need to manually delete `` bootstrap/cache/compiled.php `` .
2017-11-15 11:54:23 +02:00
Version 4.0
2018-04-08 11:00:09 +03:00
"""""""""""
2017-11-15 11:54:23 +02:00
The minimum PHP version is now 7.0.0
2017-12-14 11:17:27 +02:00
If you're using a rijndael cipher run `` php artisan ninja:update-key --legacy=true `` to change to AES-256-CBC.
2017-04-12 09:50:23 +03:00
Version 3.2
"""""""""""
2017-04-12 10:08:10 +03:00
An import folder has been adding to storage/, you may need to run `` sudo chown -R www-data:www-data storage ``
2017-04-12 09:50:23 +03:00
2017-12-25 15:00:24 +02:00
Version 2.5
2017-01-26 17:19:44 +02:00
"""""""""""
2017-11-15 11:54:23 +02:00
The minimum PHP version is now 5.5.9
2017-01-26 17:19:44 +02:00
Version 2.0
"""""""""""
2017-01-26 17:37:35 +02:00
Copy .env.example to .env and set config settings
2017-01-26 17:19:44 +02:00
2017-12-25 15:00:24 +02:00
If unset, set the app cipher to `` rijndael-256 `` .
2017-01-26 17:19:44 +02:00
Check that `` /path/to/ninja/storage `` has 755 permissions and is owned by the webserver user