Do we need to push the vendor directory to repo inorder for app to require it ?

Posted August 15, 2021 201 views
DigitalOcean App Platform

For custom PHP apps in DO’s App Platform, do we need to upload the vendor directory to the github repo which would then be pulled in into the app platform’s app ?

Or will specifying the package list alone in composer.json be enough for the app platform to automatically install the vendor folders in the app ?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

You never need to push the vendor directory to github repo, this is created by composer install command using package version in composer.json and composer.lock files.