node.js - Why do PaaS provider suggest Dependency installation during deployment? (for PHP or NodeJS and probably others) -
paas providers heroku, cloudcontrol or exoscale offer deployment using git.
they automatically download dependencies nodejs or php/composer applications after pushing source code. why?
why not fetch dependencies locally , upload them paas provider, e.g. including them in git repository?
what benefit of downloading dependencies/executing "node install" oder "composer install" after executing git push ?
dependency files should not commited version control because not make sense keep version history them; because potentially os- or hardware specific , increase repository size significantly, making many operations slower. downloading , building dependencies in build process ensures compatible production runtime, less important programming languages others ofcourse. notwithstanding this, there can cases make sense include dependencies in git. example when app tightly coupled them (or modifying them).
Comments
Post a Comment