You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
627 B
24 lines
627 B
class MainController < ApplicationController
|
|
def index
|
|
render file: 'public/react/build/index.html', :layout => false
|
|
end
|
|
|
|
|
|
|
|
def test_juypter
|
|
#打开tpm - juypter接口
|
|
shixun = Shixun.find(3575)
|
|
shixun_tomcat = edu_setting('cloud_bridge')
|
|
uri = "#{shixun_tomcat}/bridge/jupyter/get"
|
|
params = {tpiID: "tpm#{shixun.id}", :containers => "#{Base64.urlsafe_encode64(shixun_container_limit(shixun))}"}
|
|
|
|
|
|
logger.info "test_juypter: uri->#{uri}, params->#{params}"
|
|
|
|
res = uri_post uri, params
|
|
|
|
logger.info "test_juypter: #{res}"
|
|
|
|
render plain: res.to_json
|
|
end
|
|
end |