Back to list

Create a new mini environment

<%= form_with(model: @mini_environment, url: { action: "create" }, html: { class: 'form-horizontal' }) do |f| %>
<%= f.label :name, class: 'col-sm-2 control-label' %>
<%= f.text_field :name, class: 'form-control' %> Choose a name for your mini environment. This will form part of the URL used to access it.
<%= f.submit "Create", class: 'btn btn-lg btn-success' %>

Advanced options

<%= f.label :govuk_guix_revision_id, 'Revision', class: 'col-sm-2 control-label' %>
<%= f.collection_select( :govuk_guix_revision_id, GovukGuix::Revision.all, :commit_hash, :commit_hash, {}, { class: 'form-control' }, ) %> By default the latest set of software is used. If you want to use specific versions of services, select a different revision here.
<%= f.label :backend, class: 'col-sm-2 control-label' %>
<%= f.grouped_collection_select( :backend, Backends.classes_with_backends, :all, :label, :type_and_id, :label, {}, { class: 'form-control' }, ) %> Choose the backend to use. This controls the resources used to run the mini environment.
<% end %>