mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
Merge pull request 'static files 改为 gh-pages' (#281) from KingChan/forgeplus:chenjing into standalone_develop
This commit is contained in:
@@ -47,7 +47,7 @@ class PageService
|
||||
repo_link = project.repository.url
|
||||
repo = project.repository.identifier
|
||||
branch = branch
|
||||
script_path = branch == "static_files" ? "files_build" : page.build_script_path
|
||||
script_path = branch == "gh-pages" ? "files_build" : page.build_script_path
|
||||
if script_path.present?
|
||||
uri = URI.parse("http://gitlink.#{@deploy_domain}/gitlink_execute_script?key=#{@deploy_key}&script_path=#{script_path}&project_dir=#{project_dir}&repo=#{repo}&repo_link=#{repo_link}&branch=#{branch}&owner=#{owner}")
|
||||
response = Net::HTTP.get_response(uri)
|
||||
|
||||
Reference in New Issue
Block a user