Sign up

<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { class: 'form-horizontal' }) do |f| %> <%= devise_error_messages! %> <% if ENV['ON_HEROKU'] && User.count.zero? %>
<% app_name = request.host[/\A[^.]+/] %>

If you are the owner of this application, take the following steps to complete the setup:

  • Read this document carefully if you are going to try out Huginn for free on Heroku.
  • Install the Heroku Toolbelt and run heroku login, if you haven't already.
  • Run the following commands:
    <%= content_tag :pre do -%> heroku git:clone --app <%= content_tag :var, app_name %> cd <%= content_tag :var, app_name %> bundle cp .env.example .env bin/setup_heroku <%- end %>
  • This command will create an admin account for you.
<% end %> <% if User.using_invitation_code? %>
<%= f.label :invitation_code, class: 'col-md-4 control-label' %>
<%= f.text_field :invitation_code, class: 'form-control' %> We are not yet open to the public. If you have an invitation code, please enter it here.
<% end %>
<%= f.label :email, class: 'col-md-4 control-label' %>
<%= f.email_field :email, autofocus: true, class: 'form-control' %>
<%= f.label :username, class: 'col-md-4 control-label' %>
<%= f.text_field :username, class: 'form-control' %>
<%= f.label :password, class: 'col-md-4 control-label' %>
<%= f.password_field :password, autocomplete: "off", class: 'form-control' %> <% if @validatable %><%= @minimum_password_length %> characters minimum.<% end %>
<%= f.label :password_confirmation, class: 'col-md-4 control-label' %>
<%= f.password_field :password_confirmation, autocomplete: "off", class: 'form-control' %>
<%= f.submit "Sign up", class: "btn btn-primary" %>
<% end %> <%= render "devise/shared/links" %>