我关注doc
Start your server
rails server # and then go to your browser http://localhost:3000/
服务器运行并向我显示gui。但控制台说:
Camaleon CMS - Please define your current site:
$current_site = CamaleonCms::Site.first.decorate
or map your domains:
http://camaleon.tuzitio.com/documentation/category/139779-examples/how.html
不确定在哪里配置(哪个文件?) 我试过了this
# Add an initializer in config/initializers/camaleon_map_sites.rb
Rails.application.config.to_prepare do
CamaleonCms::SiteHelper.module_eval do
def cama_current_site_helper(args)
if !args[:site].present? && request.present?
args[:site] =
CamaleonCms::Site.find_by_slug('localhost:3000').decorate
end
end
end
end
..没有成功。有什么想法吗?