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.
Is there a better way to do this using rsync options or should I try an alternative deployment approach. rcpy seems bad.
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?
UPDATE:
Using this approach:
write a shell script to ssh to a remote machine and execute commands
with npm rebuild