So I've been going through the steep learning curve from D7 to D9.
I like to use git for deployment and version control. I'm new to composer as I only know Drupal and it was never used.
I've developed the whole website using composer and drush on my local machine. Namely
composer require drupal/[modulename] && drush en [modulename]-y
I moved the example.gitignore file from the web directory to the base as .gitignore. Updated the paths to reflect the move.
Without the comments it contain this:
web/core vendor web/sites/*/settings*.php web/sites/*/services*.yml web/sites/*/files web/sites/*/files/private web/sites/simpletest
Having completed the website I ran the usual commands on my local copy.
drush cex && git add . && git commit -m "Some commit message" && git push origin master
On my server I pulled the code down and imported my database. I read that I then run
After that, my contrib module patches were overridden? I'm guessing that the
composer install command grabs fresh copies of everything?
What then is the correct method?