What does .dist used as an extension of some sourc

2019-02-02 15:34发布

Examples in the Zend tutorial:

  • phpunit.xml.dist
  • local.php.dist
  • TestConfig.php.dist

1条回答
成全新的幸福
2楼-- · 2019-02-02 16:01

.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)

查看更多
登录 后发表回答