dev_bj
daiao 6 years ago
parent adbbf537da
commit 3ed7b1150e

@ -877,6 +877,16 @@ class ShixunsController < ApplicationController
ShixunTagRepertoire.create!(:tag_repertoire_id => str.tag_repertoire_id, :shixun_id => new_shixun.id) ShixunTagRepertoire.create!(:tag_repertoire_id => str.tag_repertoire_id, :shixun_id => new_shixun.id)
end end
# 同步配置
@shixun.shixun_service_configs.each do |config|
ShixunServiceConfig.create!(:shixun_id => new_shixun.id,
:cpu_limit => config.cpu_limit,
:lower_cpu_limit => config.lower_cpu_limit,
:memory_limit => config.memory_limit,
:request_limit => config.request_limit,
:mirror_repository_id => config.mirror_repository_id)
end
# 同步复制版本库先fork再修改版本库名 # 同步复制版本库先fork再修改版本库名
# eduforge用户作为版本库的创建者 # eduforge用户作为版本库的创建者
repository = Repository.new repository = Repository.new

@ -294,7 +294,7 @@
</div> </div>
</div> </div>
<% end %> <% end %>
<% if User.current.admin? || User.cuurent.business? %> <% if User.current.admin? || User.current.business? %>
<div class="edu-back-white padding40-20 mb20"> <div class="edu-back-white padding40-20 mb20">
<p class="color-grey-6 font-16 mb30">服务配置</p> <p class="color-grey-6 font-16 mb30">服务配置</p>
<% @shixun.shixun_service_configs.each do |config| %> <% @shixun.shixun_service_configs.each do |config| %>

Loading…
Cancel
Save