gapple/ drush-filesync
Drush命令,用于在不同环境之间同步文件目录
1.1.2
2017-06-02 21:03 UTC
Requires (Dev)
- drush/drush: ^8.0
Suggests
- composer/installers: Install plugin to correct location
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
-
需要
composer/installers
composer global require composer/installers
-
在
~/.composer/composer.json
中配置drush插件的安装路径{ "extra": { "installer-paths": { "../.drush/plugins/{$name}": ["type:drupal-drush"] } } }
-
需要
gapple/drush-filesync
composer global require gapple/drush-filesync
手动安装
- 下载发行包
- 将包解压到
~/.drush/
项目
使用Composer
-
在您的项目中需要
composer/installers
composer require composer/installers
-
在您的项目的
composer.json
中配置drush插件的安装路径{ "extra": { "installer-paths": { "drush/contrib/{$name}": ["type:drupal-drush"] } } }
-
在您的项目中需要
gapple/drush-filesync
composer require gapple/drush-filesync
手动安装
- 下载发行包
- 将包解压到项目中的
drush
文件夹内