To prevent that only production related scripts are published on the production server, symfony provides you two tools : the php symfony project:clear-controllers command and the myproject/config/rsync_exclude.txt file.
The rsync_exclude.txt file filters by default the scripts related to the dev environment. But if you use some other ones, they have to be added:
/web/*_cache.php
/web/*_test.php
These files aren't very dangerous, but they also should be filtered :
Thumbs.db
.DS_Store
You really should add theses files to rsync_exclude.txt :
/config/databases.yml
/data/sql/schema.sql
You can create a myproject/config/rsync_include.txt file that will be able to force the transfer of files or directories.
Read the related symfony documentation
Powered by jQuery UI and symfony. symfony check is an UI Studio creation
The content this site is published under a Creative Commons License. Some parts of the content are a remix of the official symfony documentation.
Illustrations drawned by the talented Pierre Brillault, all rights reserved.
