我正在使用Flightplan来部署我的Node.js应用程序到生产环境中。以下是我的flightplan.js文件:
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 default命令时,它停止并显示:
'rsync'不是内部或外部命令
我该如何获得rsync命令?我正在运行Windows 8操作系统。