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
Post a Comment