Download specific vendor files with Laravel Envoyer

I am trying to upload only certain provider files to my server using Laravel Forge. The reason is that I edited the code in some of my dependencies, what is happening now is that some functions of my site break, because when I exit Envoyer to my server, Envoyer grabs my GitHub repository.

my GitHub repo does not contain the provider directory, as it should not, because Iv'e added this directory to my gitignore file

/vendor/* /node_modules Homestead.yaml Homestead.json .env 

I tried a whitelist of specific folders in the directory, for example:

 /vendor/* /node_modules Homestead.yaml Homestead.json .env !/vendor !/vendor/misd 

But after I deploy from Envoyer to my server, my site stops working and I get an error message

 Warning: require(/home/forge/default/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /home/forge/default/bootstrap/autoload.php on line 17 

I tried to include the autoload.php file in the white list, but I still get a similar message after deployment

How to load my version of dependencies (modified dependencies). What happens now is that Envoyer captures all the dependencies through the composer, thereby capturing the dependency repositories, which is great, but I need to be able to install my own versions of some of these dependencies

any ideas

+8
git gitignore laravel-5 forge
source share
1 answer

As mentioned in the comments on the question itself, this is a rather dangerous situation, and it would be much better for you to service the package extension or branch it, and then use it.

As the saying goes, it looks like you have a problem with git: Based on the error that you have, the problem arises as if it is smaller than you do not include the module files (did you really verify that the module files are present?) And moreover, that /home/forge/default/bootstrap/../vendor/autoload.php not. Based on .gitignore , you indicate that this is correct (you ignore all the files in the provider - /vendor/* ) and only include the directory itself !/vendor - and the subdirectory / file misd - !/vendor/misd ). You need to enable /vendor/autoload.php - !/vendor/autoload.php - or you need to generate it after some of them.

0
source share

All Articles