承接 shockwavemk/magento2-module-console-staging 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

shockwavemk/magento2-module-console-staging

Composer 安装命令:

composer require shockwavemk/magento2-module-console-staging

包简介

Magento2 Command-Line Tools For Staging Support

README 文档

README

A Magento2 setup for a well structured development process needs the setup of development, integration and production environments.

While staging the database from production server to integration with help of backup console command (bin/magento setup:backup) minor repeating problems occur: Some settings defined in database have to be changed on staging, for example 'web/secure/base_url'.

In order to avoid this repeating task, it should be possible to define different config files overriding this settings in database. That is the purpose of this module.

Installation

Add the module to your composer file.

{
  "require": {    
    "shockwavemk/magento2-module-console-staging": "dev-master"
  }
}

Install the module with composer

    composer update

On succeed, install the module via bin/magento console:

    bin/magento cache:clean
    
    bin/magento module:install Shockwavemk_Staging
    
    bin/magento setup:upgrade

You should be able to see a new command in bin/magento console:

Usage

Create configuration file

Create a configuration php file in your project directory (or a subfolder or elsewhere on your server)

    <?php
    return array (
        'default' =>
            array(
                '0' => array(
                    'web/unsecure/base_url' => 'http://dev.example.com',
                    'web/secure/base_url' => 'https://dev.example.com'
                )
            )
        );
        

Execute command

set

    < project-path >/bin/magento staging:config:set ./db-config.php
    

Result in database

Save current db config to file (export)

    < project-path >/bin/magento staging:config:get ./db-config.php
    

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2016-07-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固