deploy-rsync
> Control rsync with config in your package.json
Last updated a year ago by jrop .
Original npm · Tarball
$ cnpm install deploy-rsync 
SYNC missed versions from official npm registry.

Deploy

Control rsync with config in your package.json

Installation

npm install -g deploy-rsync

Use

Configuration for deploy is handled by adding configuration to your package.json file. An example configuration is:

"deploy": {
	"destinations": [ {
		"dest": "user@host:/path/to/directory",
		"name": "Host #1",
		"alias": "host-1",
		"env": (object),
		"preHooks": (array or string),
		"postHooks": (array or string)
	}, ... ],
	"exclude": [ "pattern1", ... ],
	"args": [ "--update" ],

	// or optionally:
	"src": "...",
	"dest": "...",
	"args": [ "-avn" ],
}

Then you may run deploy in the same directory as this package.json file.

$ deploy

(This runs in interactive mode, and prompts for various options)

Or, to run in non-interactive mode:

$ deploy --alias host-1

If you do not wish to be prompted for confirmation, add the --no-confirm flag.

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (9)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |