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

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 ?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Accepted 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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.