after 2 years of using Laravel and Forge, sometimes, I still feel like such a newbie... Sorry for such a generic question, but I'm not finding any answers googling the interdependencies of a local build, GitHub, and Forge/AWS..
Background:
I've been building an app using Laravel for the past couple weeks.
I needed to integrate with a 3rd party so I downloaded a GitHub PHP repository, "XYZ" that did some of the integration.
It required installation via "composer require XYZ"
Everything is put in the Laravel vendor directory.
I made quite a few additions/changes to the XYZ code to bring it up to date for my needs (I updated the code in the vendor directory)
I have been syncing the overall Laravel project via Visual Studio to a private GitHub repository
The Issue:
I just pushed the repository via Forge to AWS, and none of the code I changed in the 3rd party "XYZ" code is there.
so, I looked at GitHub and realized that there is no vendor directory hence the 3rd party XYZ library and my changes to it are not being pulled from GitHub to AWS (only my app code is there). I find that the vendor directory is in the gitignore file.
Questions:
What is the right way to install this 3rd party library (and my changes) via Forge?
Where did I go wrong?
is there a way to update the gitignore file to allow this one XYZ library (with my changes) to be pushed to GitHub -> Forge -> AWS?