monogo/zero-downtime-deployment 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

monogo/zero-downtime-deployment

最新稳定版本:2.1.0

Composer 安装命令:

composer require monogo/zero-downtime-deployment

包简介

Magento 2 module to achieve zero downtime deployment

README 文档

README

Magento 2 module for Zero downtime deployment.

Module prevents showing database versions exception when you pull new code to the server. The best idea is to use CI/CD with Docker/Kubernetes. Suggested deployment:

  • get docker base image
  • run php bin/magento setup:upgrade on destination database
  • run php bin/magento setup:di:compile and php bin/magento setup:static-content:deploy on build container
  • deploy new container

NOTICE: If new version contain new classes (for example in EAV) or changed logic, Magento could behave unpredictable. You are using this module at your own risk!

Inspiration: https://medium.com/@egorshytikov/magento-0-downtime-deployment-2-9a6727efd57a

Thanks Yegor Shytikov!

This module will work only with Magento 2.4.0 and higher

Install

Git

  • Locate the /app/code directory which should be under the magento root installation.
  • If the code folder is not there, create it.
  • Create a folder Monogo inside the code folder.
  • Change to the Monogo folder and clone the Git repository (https://github.com/MonogoPolska/monogo-m2-zero-downtime-deployment.git) into Monogo specifying the local repository folder to be OptimizeDatabase e.g.

git clone https://github.com/MonogoPolska/monogo-zero-downtime-deployment ZeroDowntimeDeployment

Composer

composer require monogo/zero-downtime-deployment

Magento Setup

  • Run Magento commands

php bin/magento setup:upgrade

php bin/magento setup:di:compile

php bin/magento setup:static-content:deploy

App Configuration Options

Go to Stores->Configuration->Monogo->Zero downtime deployment

  • Enable module Default value is 0 (No)
  • Enable logger Default value is 0 (No)

TODO

  • Tests

统计信息

  • 总下载量: 25.58k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 19
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 18
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-15