1.1.0 • Published 7 years ago
node-rdeploy v1.1.0
Why
Easily deploy your app or site to any location by simply typing rdeploy.
Create a deployfile.js with your local and remote environment directories. You can add as many environments and directories as you like and push and pull in any direction.
The rdeploy package uses rsync to keep all your files up-to-date.
Install using npm install global
$ [sudo] npm install -g node-rdeploy
Create a deploy file
In your root dir create a deployfile.js
.
Example deployfile
'use strict';
var pkg = require('./package.json');
module.exports = {
envs: {
staging: {
// ssh
host: 'host',
user: 'user',
// staging dir paths
site: 'public_html/',
uploads: 'public_html/web/content/uploads/',
}
},
// local dir paths
dirs: {
site: 'site/',
uploads: 'uploads/',
},
// exclude dir paths
exclude_dirs: {
site: [
"readme.md",
]
},
// dirs that can be pushed
push: ['site','uploads'],
// dirs that can be pulled
pull: ['uploads']
};
Useage
$ rdeploy
Use the options provided.
Testing
$ rdeploy -t
Use the options provided.