“Composer vendor dir found in project” WARNING in Heroku

--

How to resolve “Composer vendor dir found in project” WARNING in Heroku?
How to resolve “Composer vendor dir found in project” WARNING in Heroku?

Description of this Heroku warning

Git repository always contains the vendor directory. This directory should not be under version control. Only ‘composer.json’ and ‘composer.lock’ files need to be added because Heroku handles the installation of dependencies on each deploy.

There are some steps that should be followed to resolve this warning message.

Steps:

1. First, go to your project root directory.
2. Remove the folder “vendor” from the Git index by running the command:

‘git rm -r -cached vendor/’.

Command result:

3. Add the following line to your project’s gitignore file:
/vendor/

4. Now, commit the changes.

Webner Solutions is a Software Development company focused on developing Insurance Agency Management Systems, Learning Management Systems and Salesforce apps. Contact us at dev@webners.com for your Insurance, eLearning and Salesforce applications.

Originally published at https://blog.webnersolutions.com on March 27, 2020.

--

--

Webner Solutions
Webner Solutions

Written by Webner Solutions

Our team in Salesforce is very strong, with in-depth knowledge of Salesforce classic and Lightning development as well as the Service cloud.

No responses yet