{% extends 'www/raster.html' %}{% load i18n %} {% load crispy_forms_tags %} {% block main-content %} 发布应用 {% if errors %} × {% blocktrans count counter=errors|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} {{ form.non_field_errors }} {% endif %} {% csrf_token %} 扩容信息 服务节点* 最小节点: {% for curNum in nodeList %} {% if curNum == fields.min_node %} {{curNum}} {% else %} {{curNum}} {% endif %} {% endfor %} 最大节点: {% for curNum in nodeList %} {% if curNum == fields.min_node %} {{curNum}} {% else %} {{curNum}} {% endif %} {% endfor %} 步长: 1\ 2 节点变化重启: 否\ 是 内存调整* 最小内存: {% for cuMemory in memoryList %} {% if cuMemory.value == fields.min_memory %} {{cuMemory.label}} {% else %} {{cuMemory.label}} {% endif %} {% endfor %} 最大内存: {% for cuMemory in memoryList %} {% if cuMemory.value == fields.min_memory %} {{cuMemory.label}} {% else %} {{cuMemory.label}} {% endif %} {% endfor %} 步长: 128M\ 256M 512M 环境变量 名称 变量名(^[A-Z][A-Z0-9_]) 变量值 作用域 是否可修改 操作 {% if env_list %} {% for env in env_list %} {% if env.scope == 'inner' %} 对内 对外 内外 {% elif env.scope == 'outer' %} 对外 对内 内外 {% elif env.scope == 'both' %} 内外 对内 对外 {% endif %} X {% endfor %} {% endif %} 新增环境变量 端口变量 容器端口([0-9]) 协议类型 别名(^[A-Z][A-Z0-9_]) 内部端口 外部端口 操作 {% if port_list %} {% for port in port_list %} {% ifequal port.protocol 'http' %} HTTP {% else %} HTTP {% endifequal %} {% ifequal port.protocol 'stream' %} STREAM {% else %} STREAM {% endifequal %} X {% endfor %} {% endif %} 新增端口变量 应用的持久化设置 挂载路径 {% for volume in volume_list %} {{volume.volume_path}} {% endfor %} {% endblock %} {% block extrajs %} {% endblock %}