Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们有一个流浪项目,我们管理我们的生产机器,我们分享它们的状态的最佳方式是什么?
现在我已经通过 git repo 共享了 .vagrant 文件夹?这是最好的方法吗?
不要将.vagrant文件夹包含在版本控制中,因为它包含实际初始化 VM 的细节,这些细节在每个初始化实例上都不同,并且不打算包含在版本控制中。要包括的最好的东西是Vagrantfile和任何配置虚拟机的配置管理脚本。
.vagrant
Vagrantfile