Browse Source

Merge pull request '调整部署方式' (#280) from KingChan/forgeplus:chenjing into standalone_develop

pull/347/head
KingChan 2 years ago
parent
commit
d79f6e2dfa
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/services/page_service.rb

+ 1
- 1
app/services/page_service.rb View File

@@ -47,7 +47,7 @@ class PageService
repo_link = project.repository.url
repo = project.repository.identifier
branch = branch
script_path =page.build_script_path
script_path = branch == "static_files" ? "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)


Loading…
Cancel
Save