how to prevent needing "npm rebuild" everytime with rsync and Node.js on Linux -


my deploy approach may noob. i'm using rsync , works part on many node.js website except ones there build dependancies xml. supposed try git concerned having bloat on vms , wanted keep lean possible.

is there better way using rsync options or should try alternative deployment approach. rcpy seems bad.

or if must "npm rebuild" command if created in shell script automate in terms of chaining commands?

update:

using approach:

write shell script ssh remote machine , execute commands

with npm rebuild

if run same node.js version on same processor architecture, don't need npm rebuild, since binaries work on target without change.

otherwise there no way avoid (except removing binary dependencies entirely of course).


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -