title: how to prevent needing "npm rebuild" everytime with rsync and Node.js on Linux
body: <p>My deploy approach may be noob. I'm using rsync and it works for the most part on many node.js website except with certain ones where there are build dependancies for xml. I supposed I could try Git but was concerned with having bloat on the VMs and wanted to keep as lean as possible.</p>
  
  <p>Is there a better way to do this using rsync options or should I try an alternative deployment approach. rcpy seems bad.</p>
  
  <p>OR if I must "npm rebuild" then what is the command to do this if I created it in a shell script to automate this in terms of chaining commands?</p>
  
  <p>UPDATE:</p>
  
  <p>Using this approach:</p>
  
  <p><a href="https://stackoverflow.com/questions/13928116/write-a-shell-script-to-ssh-to-a-remote-machine-and-execute-commands">write a shell script to ssh to a remote machine and execute commands</a></p>
  
  <p>with npm rebuild</p>