<commit_before># Setup our multi-stage environments.
require "capistrano/ext/multistage"

require "capistrano_nrel_ext/recipes/defaults"
require "capistrano_nrel_ext/recipes/haproxy"
require "capistrano_nrel_ext/recipes/server_ports"

# Set the application being deployed.
set :application, "developer_router"

set(:server_registry) do
  {
    # Frontend HAProxy servers.
    :public_router => [
      { :host => domain, :port => 80 },
    ],
    :api_router => [
      { :host => "127.0.0.1", :port => 50001 },
    ],

    # The authentication proxymachine server.
    :auth_proxy => [
      { :host => "127.0.0.1", :port => free_server_port },
    ],

    # API backends.
    :api_sfv => [
      { :host => "127.0.0.1", :port => 50100 },
    ],
    :api_georeserv => [
      { :host => "rosselli.nrel.gov", :port => 8010 },
    ],
  }
end<commit_msg>Add public site to the server config.<commit_after># Setup our multi-stage environments.
require "capistrano/ext/multistage"

require "capistrano_nrel_ext/recipes/defaults"
require "capistrano_nrel_ext/recipes/haproxy"
require "capistrano_nrel_ext/recipes/server_ports"

# Set the application being deployed.
set :application, "developer_router"

set(:server_registry) do
  {
    # Frontend HAProxy servers.
    :public_router => [
      { :host => domain, :port => 80 },
    ],
    :api_router => [
      { :host => "127.0.0.1", :port => 50001 },
    ],

    # The authentication proxymachine server.
    :auth_proxy => [
      { :host => "127.0.0.1", :port => free_server_port },
    ],

    # The public site.
    :public_site => [
      { :host => "127.0.0.1", :port => 50100 },
    ],

    # API backends.
    # For local services, start assigning ports in the 50500+ range.
    :api_sfv => [
      { :host => "127.0.0.1", :port => 50500 },
    ],
    :api_georeserv => [
      { :host => "rosselli.nrel.gov", :port => 8010 },
    ],
  }
end
{'fraction_non_alphanumeric': 0.1601685985247629, 'fraction_numerical': 0.044257112750263436, 'mean_word_length': 2.8676171079429733, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 36, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 7, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '299401', 'n_tokens_mistral': 733, 'n_tokens_neox': 674, 'n_words': 139}