|
1 | | -# Versions and Updates Documentation |
| 1 | +--- |
| 2 | +description: Learn how Mage-OS versions are numbered, which releases receive security fixes, when security releases ship, and how to upgrade to the latest release. |
| 3 | +keywords: Mage-OS versions, supported versions, version support policy, release cycle, security releases, end of support, Mage-OS upgrade, system requirements |
| 4 | +--- |
| 5 | +# Versions and Updates |
2 | 6 |
|
3 | 7 | [TOC] |
4 | 8 |
|
5 | 9 | ## Introduction |
6 | 10 |
|
7 | | -This documentation provides an overview of versions and updates in PHP and Magento 2. Understanding how versions and |
8 | | -updates work is essential for developers to maintain and enhance their applications. This document will explain the |
9 | | -concepts of versions and updates, outline how updates are released and applied, and provide guidance on managing |
10 | | -versions and updates effectively. |
| 11 | +This page explains how Mage-OS numbers its releases, which releases receive security fixes, and how to keep your |
| 12 | +installation up to date. |
11 | 13 |
|
12 | | -## Understanding Versions |
| 14 | +## Versioning |
13 | 15 |
|
14 | | -In software development, versions serve as a way to track and identify different iterations of a project. Each version |
15 | | -represents a distinct release that may introduce new features, fix bugs, or address security vulnerabilities. A version |
16 | | -typically consists of a major, minor, and patch number, following the convention "MAJOR.MINOR.PATCH." |
| 16 | +Mage-OS releases use `MAJOR.MINOR.PATCH` version numbers. The part that changes tells you what to expect from a |
| 17 | +release: |
17 | 18 |
|
18 | | -For example, consider a PHP library with version 2.1.0. Here, "2" represents the major version, "1" represents the minor |
19 | | -version, and "0" represents the patch version. A change in the major version indicates significant changes that may |
20 | | -introduce breaking changes or completely new functionality. A change in the minor version signifies the addition of new |
21 | | -features or improvements without breaking existing functionality. A change in the patch version indicates bug fixes, |
22 | | -small enhancements, or security patches with no breaking changes. |
| 19 | +| Release type | Example | What it contains | Cadence | |
| 20 | +|--------------|---------|-------------------------------------------------------------------|-----------------------------------------------| |
| 21 | +| Major | `3.0.0` | New features, dependency changes, and system requirement updates | About twice a year (around April and October) | |
| 22 | +| Minor | `3.6.0` | Security patches and compatibility updates | After each upstream security release | |
| 23 | +| Patch | `2.2.1` | Critical fixes that can't wait for the next minor release | As needed | |
23 | 24 |
|
24 | | -## Updates and Patches |
| 25 | +Every Mage-OS release is built on a Magento Open Source release. For example, Mage-OS 4.0.0 is based on Magento Open |
| 26 | +Source 2.4.9. |
25 | 27 |
|
26 | | -Updates and patches are essential for maintaining the health and security of your PHP and Magento 2 applications. |
27 | | -Updates typically refer to changes that introduce new features, improvements, and bug fixes. Patches, on the other hand, |
28 | | -address security vulnerabilities or critical bugs without introducing significant changes. |
| 28 | +## Supported Versions |
29 | 29 |
|
30 | | -For instance, when you receive an update or patch for your Magento 2 store, it may include the addition of new payment |
31 | | -gateways, performance optimizations, or bug fixes related to the checkout process. Patches, however, are released to fix |
32 | | -vulnerabilities such as potential security breaches or critical functional issues. |
| 30 | +Mage-OS is maintained by a community-run nonprofit organization. It provides security patches and updates for the |
| 31 | +**latest release only**. Older releases receive no fixes, so upgrade promptly to keep your store secure. |
33 | 32 |
|
34 | | -## Release Channels |
| 33 | +A release stops receiving fixes as soon as the next one ships. This includes major versions: once a new major version |
| 34 | +is out, the previous major version receives no more fixes. Plan for a major upgrade about twice a year. |
35 | 35 |
|
36 | | -Both PHP and Magento 2 use release channels to categorize and distribute updates. These channels allow developers to |
37 | | -select the desired level of stability and risk for their applications. The common release channels are: |
| 36 | +The [releases page](https://mage-os.org/product/releases) lists the latest release and the release notes of every |
| 37 | +version. The [roadmap](https://mage-os.org/product/roadmap) shows what's planned next. |
38 | 38 |
|
39 | | -1. Stable: This channel provides the most stable and tested updates. It is recommended for production environments where |
40 | | - stability is crucial. |
41 | | -2. Beta: Beta releases are pre-release versions designed to gather feedback from the community before a stable release. |
42 | | - These versions may still contain bugs and should not be used in production environments. |
43 | | -3. Development: Development releases are experimental versions that introduce new features but may also have significant |
44 | | - bugs. They are intended for testing purposes only and should not be used in production environments. |
| 39 | +## Security Releases |
45 | 40 |
|
46 | | -When considering which release channel to use, it is necessary to evaluate the stability requirements of your |
47 | | -application and balance the desire for new features with the risk of potential issues. |
| 41 | +Adobe publishes security patches for Magento Open Source on the second Tuesday of each month. Mage-OS usually publishes |
| 42 | +a matching minor release within days. Critical vulnerabilities are fixed in an emergency patch release when needed. |
48 | 43 |
|
49 | | -## Applying Updates |
| 44 | +To report a vulnerability, see [Reporting security issues](/docs/{{version}}/reporting-security-issues). |
50 | 45 |
|
51 | | -To apply updates and patches efficiently, it is essential to follow a systematic process. Here is a step-by-step guide: |
| 46 | +## System Requirements |
52 | 47 |
|
53 | | -1. **Backup your application**: Always create a backup of your application and database before applying any updates. |
54 | | - This ensures that you have a restore point in case any issues arise during the update process. |
| 48 | +Major releases can raise the system requirements, so check them before you upgrade. The |
| 49 | +[system requirements page](https://mage-os.org/get-started/system-requirements) always lists the requirements of the |
| 50 | +latest release. |
55 | 51 |
|
56 | | -2. **Review release notes**: Carefully review the release notes for the update or patch you plan to apply. Release notes |
57 | | - contain important information about the changes, including new features, bug fixes, and known issues. It is crucial |
58 | | - to understand the impact of the update on your application and any potential compatibility concerns. |
| 52 | +## Checking Your Version |
59 | 53 |
|
60 | | -3. **Test in a staging environment**: Before applying updates to a production environment, it is best practice to test |
61 | | - them in a staging environment that mirrors your production setup. This allows you to identify and resolve any |
62 | | - compatibility or functional issues before affecting your live application. |
| 54 | +Run this command in your project root to see which version is installed: |
63 | 55 |
|
64 | | -4. **Apply update**: Once you are confident the update will not cause unforeseen problems, apply the update to your |
65 | | - production environment or desired target. The exact process for applying updates may vary depending on the specific |
66 | | - platform or framework you are using. |
| 56 | +```bash |
| 57 | +composer show mage-os/product-community-edition |
| 58 | +``` |
67 | 59 |
|
68 | | -5. **Verify functionality**: After applying the update, thoroughly test your application to ensure all features are |
69 | | - working as expected. Check critical functionality, run automated tests, and perform real-world scenarios to ensure |
70 | | - the update did not introduce any regressions. |
| 60 | +The `versions` line shows the installed version. |
71 | 61 |
|
72 | | -6. **Monitor for issues**: Keep a close eye on your application after updates are applied. Monitor logs, user feedback, |
73 | | - and performance metrics to identify any new issues that may have been introduced. Timely detection and resolution of |
74 | | - issues are crucial to maintaining a healthy application. |
| 62 | +## Upgrading |
75 | 63 |
|
76 | | -## Managing Versions |
| 64 | +Back up your database and files before you upgrade, and test the upgrade in a staging environment first. Before a major |
| 65 | +upgrade, also read the release notes for breaking changes and check the system requirements. |
77 | 66 |
|
78 | | -Managing versions effectively is vital to ensure the stability and security of your PHP and Magento 2 applications. Here |
79 | | -are some best practices for version management: |
| 67 | +Projects created from the Mage-OS project template pin the exact product version in `composer.json`, so set the version |
| 68 | +you want first. Replace `4.0.0` with the version you're upgrading to: |
80 | 69 |
|
81 | | -1. **Semantic versioning**: Follow semantic versioning conventions to clearly communicate the impact of version changes. |
82 | | - Adhering to this convention helps developers understand the level of change and compatibility implications when |
83 | | - upgrading to a new version. |
84 | | - |
85 | | -2. **Dependency management**: When working with libraries or frameworks that have dependencies, use dependency |
86 | | - management tools like Composer for PHP or Magento's composer.json file for Magento 2. These tools simplify the |
87 | | - process of managing and updating dependencies, ensuring compatibility and avoiding version conflicts. |
88 | | - |
89 | | -3. **Keep up with updates**: Regularly check for updates and patches for your PHP and Magento 2 components, including |
90 | | - libraries, frameworks, and extensions. Staying up to date with the latest releases helps ensure that your application |
91 | | - benefits from new features, performance improvements, and security patches. |
92 | | - |
93 | | -4. **Testing and staging environments**: Maintain dedicated testing and staging environments to validate updates before |
94 | | - deploying them to production. These environments ensure that updates do not introduce unexpected issues that may |
95 | | - disrupt your live application. |
96 | | - |
97 | | -5. **Version control**: Utilize a version control system, such as Git, to track changes and manage different versions of |
98 | | - your application's code. Version control allows you to roll back to previous versions if needed and provides a |
99 | | - history of changes made over time. |
100 | | - |
101 | | -## Conclusion |
102 | | - |
103 | | -Versions and updates play a crucial role in maintaining and enhancing PHP and Magento 2 applications. Understanding the |
104 | | -concepts of versions, release channels, and update management is essential for successful application development and |
105 | | -maintenance. By following best practices, staying informed about updates, and applying updates diligently, you can |
106 | | -ensure the stability, security, and longevity of your applications. |
| 70 | +```bash |
| 71 | +bin/magento maintenance:enable |
| 72 | +composer require mage-os/product-community-edition:4.0.0 --no-update |
| 73 | +composer update mage-os/product-community-edition --with-all-dependencies |
| 74 | +bin/magento setup:upgrade |
| 75 | +bin/magento setup:di:compile |
| 76 | +bin/magento setup:static-content:deploy -f |
| 77 | +bin/magento cache:flush |
| 78 | +bin/magento maintenance:disable |
| 79 | +``` |
0 commit comments