Symfony2: should bootstrap.php.cache be in gitignore?

I maintain a working copy of my symfony2 project on several machines, work on them at different times, always pulling out the last dev branch before I start working.

Now I have the entire supplier directory in gitignore, as I assume. But when I install my application on a new machine for developers, it sometimes gets a newer version of some versions of vendors, since I do not regularly update my suppliers on each machine.

This, in my opinion, leads to a slightly different bootstrap.php.cache on each machine, so should I put this file in gitignore?

+4
source share
4 answers

.gitignore.

Symfony 2.3.5 /app/bootstrap.php.cache .gitignore.

+11

composer.json, "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap"

composer install composer update bootstrap.php.cache.

, , .gitignore .

, .

.

+1

bootstrap.php.cache :

1) ,

2) bootstrap.php.cache . /repor/folder ( ), .

+1

Here is a good gitignore example for symfony (and it includes bootstrap.php.cache): https://github.com/github/gitignore/blob/master/Symfony.gitignore

0
source

All Articles