use*_*422 7 windows deployment rsync node.js
我正在使用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.
小智 9
您可以安装免费版的cwRsync:
https://www.itefix.net/content/cwrsync-free-edition
例如,将所有文件解压缩到c:\ rsync,然后将c:\ rsync添加到路径中.
以下是在Windows上的路径中添加文件夹的教程:http://windowsitpro.com/systems-management/how-can-i-add-new-folder-my-system-path
| 归档时间: |
|
| 查看次数: |
5957 次 |
| 最近记录: |