mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
调整部署域名来源,可从全局设置进行调整
This commit is contained in:
@@ -43,7 +43,8 @@ class Page < ApplicationRecord
|
||||
end
|
||||
|
||||
def url
|
||||
"http://#{user.login}.kingchan.cn/#{identifier}"
|
||||
@deploy_domain = EduSetting.find_by_name("site_page_deploy_domain").try(:value)
|
||||
"http://#{user.login}.#{@deploy_domain}/#{identifier}"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user