gapple/drush-filesync

Drush命令,用于在不同环境之间同步文件目录

安装次数: 30

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 3

分支: 0

开放问题: 0

类型:drupal-drush

1.1.2 2017-06-02 21:03 UTC

This package is auto-updated.

Last update: 2024-09-04 11:14:29 UTC


README

Drush命令,用于在不同环境之间同步文件目录

用法

Arguments:
 source                                             Source alias
 destination                                        Destination alias

Options:
 --only-private                                     Only sync the private files directory
 --only-public                                      Only sync the public files directory
 
Examples:
 drush fsync @source @destination                   Sync both the public and private files directories
 drush fsync --only-public @source @destination     Only sync the public files directory
 
Aliases: fsync

安装

全局

使用Composer

  1. 需要 composer/installers

    composer global require composer/installers
  2. ~/.composer/composer.json 中配置drush插件的安装路径

    {
      "extra": {
        "installer-paths": {
          "../.drush/plugins/{$name}": ["type:drupal-drush"]
        }
      }
    }
  3. 需要 gapple/drush-filesync

    composer global require gapple/drush-filesync

手动安装

  1. 下载发行包
  2. 将包解压到 ~/.drush/

项目

使用Composer

  1. 在您的项目中需要 composer/installers

    composer require composer/installers
  2. 在您的项目的 composer.json 中配置drush插件的安装路径

    {
      "extra": {
        "installer-paths": {
          "drush/contrib/{$name}": ["type:drupal-drush"]
        }
      }
    }
  3. 在您的项目中需要 gapple/drush-filesync

    composer require gapple/drush-filesync

手动安装

  1. 下载发行包
  2. 将包解压到项目中的 drush 文件夹内