Git obtains remote code and reports an error to the local machine.

Source: Internet
Author: User
Tags composer install
The code is all on the server. after gitclone to the local machine, the locally configured project can also be accessed normally. different errors are always reported and the error information is similar, the corresponding class or method cannot be found. I don't know why, online, etc! The code is all on the server. Git cloneAfter the project is configured locally, different errors are reported and the error information is similar. the corresponding classes or methods cannot be found. I don't know why, online, etc!

Reply content:

The code is all on the server.Git cloneAfter the project is configured locally, different errors are reported and the error information is similar. the corresponding classes or methods cannot be found. I don't know why, online, etc!

I suspect that when you get the project code on the service, youGitFile filtering is performed on the server. Check whether your project has any. GitignoreFile. If yes, check if you have a file or folder name. If it is very likely to be filtered out, and you cannot get the code, the program reports an error.

Upstairs is correct. In addition, many projects are managed by composer. Therefore, some class libraries are not included in the source code and need to be installed by running composer install on your own. The features are very simple if the root directory of your project contains composer. json indicates that composer is used.

If this is what we call upstairs, you only need to run composer install in cmd.

Related Article

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.