1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/docs/update.rst

41 lines
1.2 KiB
ReStructuredText
Raw Normal View History

2017-01-26 16:19:44 +01:00
Update
======
2017-03-22 12:58:40 +01:00
.. NOTE:: We recommend backing up your database before updating the app.
2017-01-26 16:19:44 +01:00
2017-01-26 19:08:48 +01: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 16:19:44 +01:00
If the auto-update fails 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-01-26 16:37:35 +01:00
.. code-block:: shell
2017-01-26 16:19:44 +01:00
2017-01-26 16:37:35 +01:00
composer dump-autoload --optimize
php artisan optimize --force
php artisan migrate
php artisan db:seed --class=UpdateSeeder
2017-01-26 16:19:44 +01:00
2017-03-22 12:58:40 +01:00
.. NOTE:: If you've downloaded the code from GitHub you also need to run ``composer install``
2017-04-12 08:50:23 +02:00
Version 3.2
"""""""""""
2017-04-12 09:08:10 +02: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 08:50:23 +02:00
2017-01-26 16:19:44 +01:00
Version 2.6
"""""""""""
2017-01-26 16:37:35 +01:00
Make sure the .env file includes ``APP_CIPHER=rijndael-128``
2017-01-26 16:19:44 +01:00
Version 2.5.1
"""""""""""""
Minimum PHP version is now 5.5.9
Version 2.0
"""""""""""
2017-01-26 16:37:35 +01:00
Copy .env.example to .env and set config settings
2017-01-26 16:19:44 +01:00
Set the app cipher to ``rijndael-256`` to support existing passwords
Check that ``/path/to/ninja/storage`` has 755 permissions and is owned by the webserver user