我正在使用飛行計劃來在生產環境中部署我的node.js應用程序。 這是我的flightplan.js文件。如何在Windows上獲取rsync命令?
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/');
});
當我跑飛默認情況下它停止並說
「rsync的」不被識別爲一個內部或外部命令
我怎樣才能得到rsync命令?我運行Windows 8
Rsync是僅適用於基於Linux操作系統..有沒有rsync命令在Windows – Billy