问题
Examples in the Zend tutorial:
- phpunit.xml.dist
- local.php.dist
- TestConfig.php.dist
回答1:
.dist
files are often configuration files which do not contain the real-world deploy-specific parameters (e.g. Database Passwords, etc.), and are there to help you get started with the application/framework faster. So, to get started with such frameworks, you should remove the .dist
extension, and customize your configuration file with your personal parameters.
One purpose I have seen in using .dist
extension, is to avoid publishing personal data on VCSs (say git). So, you, as the developer of a reusable app, would use your own configuration file, but put the de-facto get-started config data in a separate .dist
-suffixed file. (See Symfony2's documentation, 4th part)
来源:https://stackoverflow.com/questions/16843080/what-does-dist-used-as-an-extension-of-some-source-code-file-mean