As I understand it, with any project that uses Composer, the correct way to deploy to production server is by not tracking the vendor folder in Git, but instead running Composer on the production server and letting it fetch all the necessary packages and populate the vendor folder for you. Firstly, have I got that bit right? (This may sound like a stupid question but nobody has ever explicitly stated this to me)
Secondly, my production server is a cheap shared hosting environment, not a shiny expensive AWS or Digital Ocean box, so I cannot install Composer in the production environment. As much as I'd like to do things the ideal way, I can't. So is the next best option to track the vendor folder in Git and deploy the packages that way. Then in the future, if I upgrade to a hosting package with more flexibility, I can stop tracking the vendor folder and start doing things the ideal way?