打印信息

This commit is contained in:
cxt 2019-07-27 17:32:43 +08:00
parent d85a0978ae
commit 15e0bd4133
2 changed files with 2 additions and 6 deletions

View File

@ -391,7 +391,7 @@ class ProjectsController < ApplicationController
def che_request
response = send_to_che
@link_ide = response["links"]["ide"] if response["links"]
@message = response["message"]
@link_ide = "http://106.75.119.131:8080/che/test_for_trustie" unless @link_ide
Rails.logger.info("#############link_ide: #{@link_ide}")
end

View File

@ -1,5 +1 @@
<% if @link_ide %>
window.location.href = "<%= @link_ide %>";
<% else %>
notice_box("<%= @message %>");
<% end %>
window.location.href = "<%= @link_ide %>";