|
|
|
@ -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
|
|
|
|
|