Edit Self Hosting Settings


<%= form_with model: Setting.new, url: settings_self_hosting_path, method: :patch, local: true, html: { class: "space-y-4" } do |form| %>

Render Deploy Hook

You must fill this in so your app can trigger upgrades when Maybe releases upgrades. Learn more about deploy hooks and how they work in the <%= link_to "Render documentation", "https://docs.render.com/docs/deploy-hooks", target: "_blank", rel: "noopener noreferrer", class: "text-blue-500 hover:underline" %>.

<%= form.text_field :render_deploy_hook, label: "Render Deploy Hook", placeholder: "https://api.render.com/deploy/srv-xyz...", value: Setting.render_deploy_hook %>

Auto Upgrades Setting

This setting controls how often your self hosted app will update and what method it uses to do so.

<%= form.check_box :upgrades_mode, { checked: Setting.upgrades_mode == "auto", unchecked_value: "manual" }, "auto", "manual" %> <%= form.label :upgrades_mode, "Enable auto upgrades", class: "text-gray-900" %>
<% if Setting.upgrades_mode == "auto" %>
<%= form.radio_button :upgrades_target, "release", checked: Setting.upgrades_target == "release" %> <%= form.label :upgrades_target_release, class: Setting.upgrades_target == "release" ? "text-gray-900" : "text-gray-500" do %> Latest Release (suggested) - you will automatically be upgraded to the latest stable release of Maybe <% end %>
<%= form.radio_button :upgrades_target, "commit", checked: Setting.upgrades_target == "commit" %> <%= form.label :upgrades_target_commit, class: Setting.upgrades_target == "commit" ? "text-gray-900" : "text-gray-500" do %> Latest Commit - you will automatically be upgraded any time the Maybe repo is updated <% end %>
<% end %>
<% end %>