简体   繁体   English

如何使用Laravel Envoyer上传编辑的供应商文件夹

[英]How to upload edited vendor folders with Laravel Envoyer

I'm trying to upload my edited (custom) versions of some vendor packages Example I edited some code in 我正在尝试上传一些供应商软件包的已编辑(自定义)版本,例如我在

vendor/misd/linkify/src/Misd/Linkify

I changed a few lines to work for my project. 我更改了几行以适合我的项目。 The problem is when i push my project to github then deploy using envoyer , All the vendor files get reinstalled via composer update, thus grabbing from the GitHub repo 问题是当我将项目推送到github然后使用envoyer进行部署时,所有供应商文件都通过composer更新重新安装,从而从GitHub存储库中获取

I need to be able to upload my own version of that specific vendor folder/file 我需要能够上载该特定供应商文件夹/文件的自己的版本

I've tried whitelisting specific vendor file via gitignore , heres my original question Uploading Specific Vendor files with Laravel's Envoyer 我已经尝试通过gitignore将特定供应商文件列入白名单,这是我最初的问题, 使用Laravel的Envoyer上传特定供应商文件

But with no luck. 但是没有运气。 Is this good practice, should I be going about it a different way? 这是一种好习惯吗,我应该采用其他方式吗? How can I get my modified version up to my server 如何将修改后的版本上传到服务器

Unless you have write access to the Vendor Project, you won't be able to push changes. 除非您具有对供应商项目的写权限,否则您将无法进行更改。 You need to fork the Misd/Linkify vendor project and make changes and push to your fork. 您需要派生Misd / Linkify供应商项目并进行更改并推送到您的派生。

Then use Composers Repository Package pattern and provide the path to the forked project. 然后使用Composers Repository Package模式并提供分支项目的路径。

If it is a private repository refer https://getcomposer.org/doc/05-repositories.md#using-private-repositories 如果它是私有存储库,请参阅https://getcomposer.org/doc/05-repositories.md#using-private-repositories

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM