S
S
Sergey2016-05-20 12:12:31
git
Sergey, 2016-05-20 12:12:31

Should the vendor folder be version controlled?

Just started to deal with Git, the question arose which files to ignore and which to put under control. Installed Yii2 via composer, all its packages are contained in the vendor folder. The question is to put the vendor folder under version control or ignore this folder, because the composer.json file is already under control?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Александр, 2016-05-20
@frost18

Можно "ставить под контроль" файл composer.lock - после pull'а на продакшене запускается "composer install" и версии пакетов всегда те же, что и у разработчика.

D
dmitriy, 2016-05-20
@dmitriylanets

однозначно в игнор

Александр Кубинцев, 2016-05-20
@akubintsev

В отдельный репозиторий зависимости. А так в .gitignore.
composer install для деплоя на прод? Не самое хорошее решение.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question