问题描述
Zend教程中的示例:
Examples in the Zend tutorial:
- phpunit.xml.dist
- local.php.dist
- TestConfig.php.dist
推荐答案
.dist
文件通常是配置文件,不包含实际的特定于部署的参数(例如,数据库密码等),并且在那里帮助您更快地开始使用应用程序/框架.因此,要开始使用此类框架,您应该删除.dist
扩展名,并使用个人参数自定义配置文件.
.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.
我在使用.dist
扩展名时看到的一个目的是避免在VCS上发布个人数据(例如git).因此,作为可重用应用程序的开发人员,您将使用自己的配置文件,但将实际的入门配置数据放在单独的后缀为.dist
的文件中. (请参阅 Symfony2 的文档,第4部分)
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)
这篇关于.dist用作某些源代码文件的扩展名是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!