Check if your symfony application is ready for deployment

Fix your deployments
  • high
  • security

You shall not pass!

Test environment scripts SHALL NOT PASS

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:


These files aren't very dangerous, but they also should be filtered :


Production database must be protected

You really should add theses files to rsync_exclude.txt :


Force some files to be transfered

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