1

我刚刚从 layer vault 的制造商那里偶然发现了这个 coooool 项目。 http://cosmos.layervault.com/divergence.html

它允许将项目分支变成子域。我认为测试设计和功能变化真是太棒了。

我对配置文件有点疑惑:

  # config/config.rb

  require File.expand_path('../callbacks', __FILE__)
  Divergence::Application.configure do |config|
  # Change this to the git repository path
  config.git_path = "/var/www/web_app/repository"

  # this to your application's path
  config.app_path = "/var/www/web_app/current"

  # and this to a location for the cache
  config.cache_path = "/var/www/web_app/cache"

  config.forward_host = 'localhost'
  config.forward_port = 81
end

我尝试设置 git_path、app_path,但我不知道应该将 cache_path 指向哪里(我相信它目前已针对 rails 进行了优化,但我不确定)。无论如何,它不会去任何地方,我不断收到提示设置 git_path。我想知道是否有人有运气?

干杯

4

1 回答 1

0

您可以检查分歧 repo中包含的测试目录,并查看这些变量指向的位置。

bundle install --deployment --without development test

它将使用这个测试 git repo

  • git_path指向已签出的 git repo 的根目录:请参阅此提交
  • git_app指您希望在其中签出当前分支(以及正在部署的应用程序)的任何目录
  • git_cache指向您要用于缓存的任何目录(即使它尚不存在,也会被创建)。
于 2013-02-06T08:17:13.313 回答