diff --git a/app/helpers/gitlab_helper.rb b/app/helpers/gitlab_helper.rb index 810ac7c5a..679dcbdfc 100644 --- a/app/helpers/gitlab_helper.rb +++ b/app/helpers/gitlab_helper.rb @@ -82,6 +82,9 @@ module GitlabHelper # 新创建项目的web地址 web_url = temp['web_url'] web_url['http://localhost'] = REPO_IP_ADDRESS + # 新创建项目的本笃文件路径 + localfile = temp['web_url'] + localfile['http://localhost'] = ROOT_PATH # 保存数据 gitproject =GitlabProject.new @@ -89,6 +92,7 @@ module GitlabHelper gitproject.gitlab_project_id = temp['id'] gitproject.repository_url = repository_url gitproject.web_url = web_url + gitproject.localfile_url = localfile gitproject.save return true else