0.0.4 • Published 7 years ago

upload-changes v0.0.4

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

🐔 upload-changes

This node tool monitors the current directory for changes and uploads new/modified files via ssh. It does not handle deletion of files, nor syncing of any sort. Supports notifications on upload as well (Mac Notification Center, notify-osd etc).

Built as a simple editor-agnostic way to automatically upload edited or compiled (eg via brunch or webpack) files up to a dev server.

https://www.npmjs.com/package/upload-changes

Setup

  1. Install npm i -g upload-changes
  2. Edit config file in cwd config/default.json
  3. Run upload-changes

Configuration

Configuration is fairly self explanatory. Place in your current working directory under config/default.json

{
	"sync": {
		"host": "www.example.com",
		"port": 22,
		"user": "user",
		"remotePath": "/path/to/upload",
		"privateKeyPath": "/path/to/.ssh/id_rsa",
		"privateKeyPassPromptRequired": false
	},
	"notifications": true,
	"ignoreDotFiles": true,
	"ignored": [
	  "watch.js",
	  "readme.md",
	  ".git",
	  "node_modules",
	  "config",
	  "yarn.lock",
	  "package.json"
	]
}

Notes

  1. Only supports key-based auth right now
  2. If you need to prompt for the private key passphrase, set privateKeyPassPromptRequired to true in the config.