node-remote-deploy

0.0.4 • Public • Published

node-remote-deploy

A module to sync files to remote server while you work on device or cloud platform of your choice like Glitch.

Example config

new exports({
  connection: {
    host: "HOST",
    port: 22,
    username: "root",
    password: "PASSWORD",
    // privateKey: "/path/to/key.pem",
    // passphrase: "passphrase",
    localDir: "./",
    remoteDir: "/mnt/node/REMOTE/"
  },
  options: {
    exclude: [
      "node_modules",
      ".git",
      ".glitch-assets",
      "src/**/*.spec.ts",
      "shrinkwrap.yaml",
      ".bash_history",
      ".config",
      ".data",
      ".nano",
      ".node-gyp",
      ".ssh"
    ],
    excludeMode: 'ignore',
    forceUpload: false
  },
  uploaders: ["HOST_NAME_1", "HOST_NAME_2", function() { return __dirname === "/app"; }]
});

Readme

Keywords

Package Sidebar

Install

npm i node-remote-deploy

Weekly Downloads

2

Version

0.0.4

License

MIT

Unpacked Size

2.38 kB

Total Files

3

Last publish

Collaborators

  • rehmat