|
|
@ -42,7 +42,7 @@ class CreateShixunService < ApplicationService
|
|
|
|
if !Laboratory.current.main_site?
|
|
|
|
if !Laboratory.current.main_site?
|
|
|
|
Laboratory.current.laboratory_shixuns.create!(shixun: shixun, ownership: true)
|
|
|
|
Laboratory.current.laboratory_shixuns.create!(shixun: shixun, ownership: true)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
# 如果是jupyter,先创建一个目录,为了挂载
|
|
|
|
# 如果是jupyter,先创建一个目录,为了挂载(因为后续数据集,开启Pod后环境在没销毁前,你上传数据集是挂载不上目录的,因此要先创建目录,方便中间层挂载)
|
|
|
|
if shixun.is_jupyter?
|
|
|
|
if shixun.is_jupyter?
|
|
|
|
folder = edu_setting('shixun_folder')
|
|
|
|
folder = edu_setting('shixun_folder')
|
|
|
|
path = "#{folder}/#{identifier}"
|
|
|
|
path = "#{folder}/#{identifier}"
|
|
|
|