我刚刚从图层库的制造商那里偶然发现了这个coooool项目。 http://cosmos.layervault.com/divergence.html
它允许将项目分支转换为子域。我认为测试设计和功能变化令人惊讶。
BUT
我对配置文件感到有点困惑:
# 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。 我想知道是否有人有运气吗?
干杯
答案 0 :(得分:0)
您可以查看test directory中包含的divergence repo,并查看这些变量指向的位置。
bundle install --deployment --without development test
它将使用此test git repo。
git_path
指向已签出的git仓库的根目录:请参阅this commit。git_app
指的是您希望检出当前分支的任何目录(以及您的应用程序是否已部署)git_cache
指向您要用于缓存的任何目录(即使它尚不存在,也会被创建)。