简体   繁体   中英

Symfony 3: What should I checkin to git?

I am new to Symfony 3 (earlier I worked with Yi 1 and now I want to try something new).

I am very confused, that the structure looks so much different - and the framework seems to be mixed up with the application logic.

What would I now checkin into git? Of course I dont want to have the framework in git, only my application (config, php, templates, ...).

\app
\bin
\src
\tests
\var *
\vendor *
\web
composer.json

Should everything be checked in but "var" and "vendor"? Is this, where the framework-core is in?

Also, I found an example app for symfony, but it is for symfony 2.7 - does anyone knows, if there is a example app for the new symfony 3?

Do not commit the following:

/app/config/parameters.yml
/build/
/phpunit.xml
/var/*
!/var/cache
/var/cache/*
!var/cache/.gitkeep
!/var/logs
/var/logs/*
!var/logs/.gitkeep
!/var/sessions
/var/sessions/*
!var/sessions/.gitkeep
!var/SymfonyRequirements.php
/vendor/
/web/bundles/

Everything else can be committed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM