【发布时间】:2015-08-12 03:48:53
【问题描述】:
我正在使用 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。
【问题讨论】:
-
Rsync 仅适用于基于 Linux 的操作系统。Windows 中没有 Rsync 命令
标签: windows node.js deployment rsync