0.0.4 • Published 7 years ago
upload-changes v0.0.4
🐔 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
- Install
npm i -g upload-changes
- Edit config file in cwd
config/default.json
- 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
- Only supports key-based auth right now
- If you need to prompt for the private key passphrase, set
privateKeyPassPromptRequired
totrue
in the config.