0

I just setup gitdeployment to my production server from my local machine following this tutorial

Now i am going to deploy a laravel project but i've few doubts.

1.In my laravel git repo vendors folders are excluded from the git so when i deploy the project with git to live server it doesn't worked because vendor folder is missing.

One solution to solve this problem is add vendor folder to the git buti don't think its a better practise.

My solution

After git deployment login to my live server and run the composer install command to add the vendors folder.

But its looks painful process suppose if a new package is added to my project (ie image intervention package) i need to repeat my step.

So is there any way to automatically manage vendors folder in live server

Jabaa
  • 1,743
  • 7
  • 31
  • 60

0 Answers0