Composer Post-install plugin as git submodule (git sub-project)

Source: Internet
Author: User
Using the YII2 framework, used to install plug-ins with composer, installed after the Discovery Plugin directory is considered a git sub-project, the knife block submitted to the project git inside, just an empty directory.

There are a few minor problems;
1, everyone on the online project git is ignoring vendor? This feeling whether the collaboration is inconvenient, there are deployment, mainly because composer in the domestic also pits.
2, if this situation, do not want to do ignore vendor folder, want to take this sub-project recognition also removed, how to operate?

Reply content:

Using the YII2 framework, used to install plug-ins with composer, installed after the Discovery Plugin directory is considered a git sub-project, the knife block submitted to the project git inside, just an empty directory.

There are a few minor problems;
1, everyone on the online project git is ignoring vendor? This feeling whether the collaboration is inconvenient, there are deployment, mainly because composer in the domestic also pits.
2, if this situation, do not want to do ignore vendor folder, want to take this sub-project recognition also removed, how to operate?

You must have the label of the package chosen dev-master , the main reason is this.

1, under normal circumstances, vender of course to ignore, is generally in the local development time how to, release the time again on the server composer update. Will not take vender also as a document to publish.
2, not very clear where the problem is, no add into git?

Revise it .gitignore and vendor/ delete it should be.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.