【发布时间】:2014-02-02 00:45:53
【问题描述】:
我有一个 vagrant/chef/Berksfile 配置(https://github.com/jaycrossler/geoevents-chef-repo/blob/master/cookbooks/geoevents/attributes/default.rb#L5),它设置为从签入的 github 存储库中提取代码。它工作得很好,每次我运行“vagrant provision”时,它都会将代码从 github 更新到 VM 中。
default['geoevents']['git_repo']['location'] = 'https://github.com/jaycrossler/geo-events.git'
如何将 chef recipe 指向本地 git 实例,例如 ~/app/geo-events.git,以便在进行本地更改时,可以推送到 VM 进行测试?另外,这是最好的工作流程吗?
【问题讨论】:
标签: git chef-infra vagrant