update model page url

This commit is contained in:
呱呱呱 2023-12-21 14:13:42 +08:00
parent f3376594f1
commit 3a0a95a18f
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View File

@ -10,7 +10,7 @@
# Ignore lock config file # Ignore lock config file
*.log *.log
.env
# mac # mac
*.DS_Store *.DS_Store
.bashrc .bashrc

View File

@ -46,7 +46,7 @@ class Page < ApplicationRecord
def url def url
@deploy_domain = EduSetting.find_by_name("site_page_deploy_domain").try(:value) @deploy_domain = EduSetting.find_by_name("site_page_deploy_domain").try(:value)
"http://#{user.login}.#{@deploy_domain}/#{identifier}" "http://#{identifier}"
end end
def build_script_path def build_script_path