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