如何在Windows上获取rsync命令? [英] How to get rsync command on windows?
问题描述
我正在使用flightplan在生产环境中部署我的node.js应用程序。
这是我的flightplan.js文件。
I am using flightplan with to deploy my node.js application in production. Here is my flightplan.js file.
var plan = require('flightplan');
plan.target('default', {
host: {{host}},
username: {{ username }},
port: '2222',
agent: process.env.SSH_AUTH_SOCK
});
plan.local(function(local) {
local.log('Copy files to remote hosts');
var filesToCopy = local.exec('git ls-files', { silent: true });
// rsync files to all the destination's hosts
local.transfer(filesToCopy, '~/www/');
});
当我运行fly时,它会停止并说
When I run fly default it stops and says
'rsync'不被识别为内部或外部命令
'rsync' is not recognized as an internal or external command
如何获取rsync命令?我正在运行Windows 8。
How can I get rsync command? I am running windows 8.
推荐答案
您可以安装cwRsync的免费版本:
You can install free version of cwRsync :
https://www.itefix.net/content/cwrsync-free-edition
例如,将所有文件解压缩到c:\rsync,然后将c:\rsync添加到您的路径。
Unzip all files to c:\rsync for example, then add c:\rsync to your path.
以下是在Windows上的路径中添加文件夹的教程: http://windowsitpro.com/systems-management/how-can-i-add-new-folder-my-system-path
Here is a tutorial to add a folder in your path on Windows : http://windowsitpro.com/systems-management/how-can-i-add-new-folder-my-system-path
这篇关于如何在Windows上获取rsync命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!