I am using flightplan with to deploy my node.js application in production. Here is my flightplan.js file.
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/');
});
When I run fly default it stops and says
'rsync' is not recognized as an internal or external command
How can I get rsync command? I am running windows 8.
You can install free version of cwRsync :
https://www.itefix.net/content/cwrsync-free-edition
Unzip all files to c:\rsync for example, then add c:\rsync to your path.
Here is a tutorial to add a folder in your path on Windows : http://windowsitpro.com/systems-management/how-can-i-add-new-folder-my-system-path
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With