|
|
@ -82,7 +82,7 @@ module GitlabHelper
|
|
|
|
# 新创建项目的web地址
|
|
|
|
# 新创建项目的web地址
|
|
|
|
web_url = temp['web_url']
|
|
|
|
web_url = temp['web_url']
|
|
|
|
web_url['http://localhost'] = REPO_IP_ADDRESS
|
|
|
|
web_url['http://localhost'] = REPO_IP_ADDRESS
|
|
|
|
# 新创建项目的本笃文件路径
|
|
|
|
# 新创建项目的本地文件路径
|
|
|
|
localfile = temp['web_url']
|
|
|
|
localfile = temp['web_url']
|
|
|
|
localfile['http://localhost'] = ROOT_PATH
|
|
|
|
localfile['http://localhost'] = ROOT_PATH
|
|
|
|
|
|
|
|
|
|
|
@ -124,6 +124,9 @@ module GitlabHelper
|
|
|
|
# 新创建项目的web地址
|
|
|
|
# 新创建项目的web地址
|
|
|
|
web_url = temp['web_url']
|
|
|
|
web_url = temp['web_url']
|
|
|
|
web_url['http://localhost'] = REPO_IP_ADDRESS
|
|
|
|
web_url['http://localhost'] = REPO_IP_ADDRESS
|
|
|
|
|
|
|
|
# 新创建项目的本地文件路径
|
|
|
|
|
|
|
|
localfile = temp['web_url']
|
|
|
|
|
|
|
|
localfile['http://localhost'] = ROOT_PATH
|
|
|
|
|
|
|
|
|
|
|
|
# 保存数据
|
|
|
|
# 保存数据
|
|
|
|
gitproject = GitlabProject.new
|
|
|
|
gitproject = GitlabProject.new
|
|
|
@ -131,6 +134,7 @@ module GitlabHelper
|
|
|
|
gitproject.gitlab_project_id = temp['id']
|
|
|
|
gitproject.gitlab_project_id = temp['id']
|
|
|
|
gitproject.repository_url = repository_url
|
|
|
|
gitproject.repository_url = repository_url
|
|
|
|
gitproject.web_url = web_url
|
|
|
|
gitproject.web_url = web_url
|
|
|
|
|
|
|
|
gitproject.localfile_url = localfile
|
|
|
|
gitproject.save
|
|
|
|
gitproject.save
|
|
|
|
tempResult[:result]= true
|
|
|
|
tempResult[:result]= true
|
|
|
|
tempResult[:gitprojectid]=gitproject.gitlab_project_id
|
|
|
|
tempResult[:gitprojectid]=gitproject.gitlab_project_id
|
|
|
|