Added a facebookxhprof through composer to view the website performance. In composer. added: {code...} to the json require field ...} then run the command: composerupdate successfully installed the package, and the package is installed in the vender under the root directory... added
facebook/xhprof
Used to view the performance of a website. Added the following in the require field of composer. json:
"facebook/xhprof": "dev-master"
Then run the following command:composer update
The package is successfully installed, and the package is installed under the root directory.vendor
.
Howevergit add *
git commit -m ""
Unablevendor/facebook/xhprof
Only the directory of facebook/xhprof is submitted, and none of the following files are submitted.
This problem was not the first time encountered today. It was also encountered several times before. It took a long time to debug the problem on the server. Later I checked it and found that it was originally submitted only to the directory, files in the directory are not submitted.
PS: I have checked the. gitignore file. It can be confirmed that the files in the directory are not blocked, but cannot be submitted.
Reply content:
Addedfacebook/xhprof
Used to view the performance of a website. Added the following in the require field of composer. json:
"facebook/xhprof": "dev-master"
Then run the following command:composer update
The package is successfully installed, and the package is installed under the root directory.vendor
.
Howevergit add *
git commit -m ""
Unablevendor/facebook/xhprof
Only the directory of facebook/xhprof is submitted, and none of the following files are submitted.
This problem was not the first time encountered today. It was also encountered several times before. It took a long time to debug the problem on the server. Later I checked it and found that it was originally submitted only to the directory, files in the directory are not submitted.
PS: I have checked the. gitignore file. It can be confirmed that the files in the directory are not blocked, but cannot be submitted.
The facebook/xhprof directory will generate a. git folder, which is affected and cannot be uploaded. You can delete it and upload it again.
Use composer update -- prefer-dist (ignore the project. git directory ),
This article may solve your doubts, https://segmentfault.com/a/1190000005105795