webgriffe/deployer-magento 问题修复 & 功能扩展

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

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

webgriffe/deployer-magento

Composer 安装命令:

composer require webgriffe/deployer-magento

包简介

Deployer recipe for Magento project

README 文档

README

Deployer recipe for Magento project. It requires Deployer greater or equal to version 5.0.

Install

Install it using Composer:

$ composer require --dev webgriffe/deployer-magento

Usage

Require the recipe in your deploy.php:

namespace Deployer;

require __DIR__ . '/vendor/webgriffe/deployer-magento/magento.php';

// Usual Deployer configuration here

// Set magento root directory inside release path (leave blank if Magento is in the root of the release path)
set('magento_root', 'magento');
// Set other Magento's specific config (see below)

Caution

Please, refer to the magento.php file to check the provided shared directories and files. Make sure that these don't conflict with your project. Even when you upgrade webgriffe/deployer-magento please check the shared stuff. We do not treat a different shared configuration as a BC break.

Configuration

This recipe provides the following Deployer parameters that you can set in your local deploy.php file:

  • media_pull_exclude_dirs, default value ['css', 'css_secure', 'js']: allows to set a list of subdirectories of the media folder that will be excluded from the magento:media-pull task.
  • setup-run-timeout, default value 300: allows to set the timeout for the magento:setup-run task which in some cases takes more time.
  • db_pull_strip_tables, default value ['@stripped']: allows to set an array of table names or groups which data will be stripped from the database dump generated with the magento:db-pull task. Table names or groups syntax follow the same rules of the --strip option of the n98-magerun.phar db:dump, see the magerun documentation for more information.
  • magerun_remote, default value n98-magerun.phar: allows to set the path of the magerun bin on the remote stage.
  • magerun_local, default value getenv('DEPLOYER_MAGERUN_LOCAL') ?: 'n98-magerun.phar': allows to set the path of the local magerun bin. As you can see the default value is taken from the DEPLOYER_MAGERUN_LOCAL environment variable if it's set, otherwise n98-magerun.phar will be used.

Magento useful tasks

This recipe provides Magento useful tasks:

  • magento:db-dump: creates a gzipped database dump on the remote stage in the deploy user's home directory
  • magento:db-pull: pulls database from the remote stage to local environment
  • magento:media-pull: pulls Magento media from the remote stage to local environment
  • magento:set-copy-deploy-strategy: sets the "copy" deploy strategy for Magento Composer Installer into the composer.json file.

License

This library is under the MIT license. See the complete license in the LICENSE file.

Credits

Developed by Webgriffe®. Please, report to us any bug or suggestion by GitHub issues.

webgriffe/deployer-magento 适用场景与选型建议

webgriffe/deployer-magento 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 24.98k 次下载、GitHub Stars 达 11, 最近一次更新时间为 2017 年 04 月 13 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 webgriffe/deployer-magento 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 webgriffe/deployer-magento 我们能提供哪些服务?
定制开发 / 二次开发

基于 webgriffe/deployer-magento 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 24.98k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 12
  • 点击次数: 8
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-04-13