小编use*_*422的帖子

如何在Windows上获取rsync命令?

我正在使用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/');
});
Run Code Online (Sandbox Code Playgroud)

当我运行飞行默认时它停止并说

'rsync'未被识别为内部或外部命令

我怎样才能获得rsync命令?我正在运行Windows 8.

windows deployment rsync node.js

7
推荐指数
1
解决办法
5957
查看次数

标签 统计

deployment ×1

node.js ×1

rsync ×1

windows ×1