1.3.0 • Published 6 years ago
@aneutralgiraffe/watch-scp v1.3.0
watch-scp
Watches local folder(s) and copies changed files to remote folder(s) via scp.
Install
npm install -g @aneutralgiraffe/watch-scp
Setup
Navigate to the install folder:
cd $(npm root -g)/@aneutralgiraffe/watch-scp
Create a copy of watch-scp-config-example.json named watch-scp-config.json. Replace the example config values with your real values.
Multiple config objects can be provided.
[
{
"src": "/a/local/folder",
"dest": "/a/remote/folder",
"remoteHost": "some-remote-host.com",
"remoteUser": "myremoteuser" // Optional - will fallback to using your local user
},
// ... Optional additional config objects
]
Usage
In your terminal, run:
watch-scp