Drone
Drone

Reputation: 1134

How to push laravel packages and helper files through git

If I don't have ssh access and can't run composer command over server.

How can I upload laravel packages properly through GIT repository, so that my project will run without any problem .

I know If I remove vendor folder from root .gitignore then vendor file will up to the server.

But still I have doubt, I have to do other thinks also.

I am not good in git thats why before messing laravel I am asking this.

Upvotes: 2

Views: 792

Answers (1)

Bogdan
Bogdan

Reputation: 44526

The general recommendation is not to commit the vendor directory, that's why Laravel ships with a .gitignore file that contains the vendor directory amongst other things.

However, there are situations such as yours where this is not possible, so in that case there is a nice section of the Composer Documentation that offers some advice on how you should handle committing the dependencies to version control:

Should I commit the dependencies in my vendor directory?

Upvotes: 2

Related Questions