定制 osio/magento-autopatch 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

osio/magento-autopatch

最新稳定版本:0.2.2

Composer 安装命令:

composer require osio/magento-autopatch

包简介

The Patch AutoUpdater module for Magento 2 automates the process of checking and applying patches

README 文档

README

The MagentoAutoPatch module for Magento 2 automates the process of checking for and applying minor patches (example: 2.4.6 - 2.4.6-p2). It integrates directly with Magento’s patch management system, reducing the need for manual intervention, ensuring your store remains secure and up-to-date.

Features

  • Automated Patch Lookup: Automatically checks for the latest patches and notifies you per E-Mail
  • Automated Patch Install: Automatically applies the latest patches.
  • For Adobe Commerce and Magento Open Source
  • Notifies you before and after the update per E-Mail
  • Custom CLI Command: Use bin/magento patch:update to manually check and apply patches.
  • Logging: log errors auto-patch.log. This get sent on failure with the after patch notification
  • Restricted Usage Access Control List for Backend Users depending on the User Group

Support

If something goes wrong or you don't want to apply a patch yourself, feel free to send me an E-Mail

Installation

composer require osio/magento-autopatch
bin/magento setup:upgrade

Enable the Module (automates check for new patch and install)

stores -> configuration -> Osio -> Auto Patcher -> enable

Alt text

Patch the System (manually check for new patch and install)

php -d memory_limit=-1 bin/magento patch:update

Overview automated commands wrapped in this module

  • composer require --no-update --dry-run
  • composer require --no-update
  • composer update --dry-run
  • composer update
  • bin/magento setup:upgrade
  • bin/magento cache:flush
  • bin/magento deploy:mode:set production

bin/magento deploy:mode:set production runs only if magento was in production mode before

the cronjob checking for a new patch is scheduled everyday at 11 AM Server Time To change this i advice i stalling a cron job manager like https://github.com/Ethan3600/magento2-CronjobManager

Minor Requirements

Before using the module, ensure your system meets the following requirements:

  • PHP: Version 7.4 or higher.
  • Composer: Version 2.1.6 or higher.
  • Magento: Version 2.4.0 or higher.

Disclaimer

This module, Osio_MagentoAutoPatch, is designed to assist with applying Magento patches automatically. It is intended for use on test or staging servers only. Before applying any patches or updates to a live production environment, you should thoroughly test them in a non-production environment to ensure compatibility and stability.

I, the author, Osiozekhai Aliu, take no responsibility for any issues, downtime, or broken functionality that may arise from using this module on production servers. It is strongly recommended that all patches are tested in a controlled environment before being applied to a production server. By using this module, you acknowledge that you are solely responsible for any outcomes resulting from its use.

Todos

  • add command implementation: Feedback loop for processes
  • add tested on magento versions to README
  • refactor process class usage
  • add deploy modes handling
  • add error handling in extra module log
  • add separate log file
  • Add backend Dialog and command implementation: Enable switch
  • fix Error setting Production Mode when not in production mode
  • add comments under fields in system.xml
  • add disclaimer to README
  • change composer usage
  • add minor requirements
  • Add backend Dialog and command implementation: notification per mail of available patch
  • Add backend Dialog and command implementation: Patch automatically or not (comment cron has to bee set up to use)
  • Add backend Dialog and command implementation: notification per mail of after auto-patch
  • Add ACL
  • add auto-patch.log as Attachment to after patch mail

统计信息

  • 总下载量: 38
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-10-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固