meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
updates [2023/10/24 16:22] – andrewmalsbury | updates [2025/06/11 08:18] (current) – separate the two update processes: cli & web wrongecho | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Updates ====== | ====== Updates ====== | ||
- | * It's important to take regular (e.g. nightly) backups of your ITFlow instance, especially before updating | + | |
- | | + | |
- | * Updates will contain changes | + | * Always look over the changelog before running updates |
- | * The updater can be accessed via **Settings > Update**. | + | * Updates are a two part process: |
+ | | ||
+ | | ||
- | ===== Files ===== | + | ===== Web Interface |
+ | - Login to ITFlow as an admin | ||
+ | - Navigate to Admin Settings > Update | ||
+ | - Select **Update App** | ||
+ | - If prompted, also select **Update database** (you may have to do this several times) | ||
+ | |||
+ | ===== CLI ===== | ||
+ | - Connect to your server via SSH as a user with root privileges | ||
+ | - Navigiate to the ITFlow scripts directory (usually / | ||
+ | - To update the app files run: '' | ||
+ | - Then apply database updates: '' | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Explanatory notes about updates (to be tidied up) ===== | ||
+ | ==== Files ==== | ||
The majority of ITFlow updates are just changes to the PHP files. The update tab will show the latest [[https:// | The majority of ITFlow updates are just changes to the PHP files. The update tab will show the latest [[https:// | ||
- | If you've edited any files, the auto-updater will fail - navigate to your web directory and run git pull to review and resolve the issue. | + | If you' |
{{updates_git_pull.png? | {{updates_git_pull.png? | ||
- | ===== Database | + | ==== Database ==== |
After pulling down the latest files, the update page will then show if the latest database version has increased. If it has, it will offer to run the commands in // | After pulling down the latest files, the update page will then show if the latest database version has increased. If it has, it will offer to run the commands in // | ||
Line 28: | Line 47: | ||
- | //Additional notes: | + | **Additional notes: ** |
- | | + | |
* The database update applies one update at a time. If there are multiple updates needed, you will need to manually cycle through each update. | * The database update applies one update at a time. If there are multiple updates needed, you will need to manually cycle through each update. | ||
+ | |||
+ | * If you run into any issues running multiple database updates, it may be worth signing out and back in again between updates. Some updates alter files in your PHP session, which might only be set during login. | ||
{{: | {{: |