我刚刚从 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。我想知道是否有人有运气?
干杯