<!doctype html>
<html>
  <head>
    <title>
      <% if @channel %><%= @channel.title %> | <% end %>
      Red Cursor
    </title>
    <%= stylesheet_link_tag    "application" %>
    <%= javascript_include_tag "application" %>
    <%= csrf_meta_tags %>
    <%= users_js %>
    <% if mobile? %>
      <meta name="viewport" content="initial-scale = 1.0, user-scalable = no">
    <% end %>
  </head>
  <body<%= ' class="mobile"'.html_safe if mobile? %> data-socket-server="ws://localhost:8000" data-api-key="<%= current_user.api_key %>">
    <a name="top"></a>

    <header class="header">
      <div class="content">
        <h1 id="title">
          Red Cursor
        </h1>
        <%= render :partial => "shared/toolbar" %>
      </div>
    </header>

    <% if !flash[:notice].blank? %>
      <div class="notice"><%= flash[:notice] %></div>
    <% end %>

    <div id="container">

      <section id="content">
        <div class="channel-search-container"></div>

        <%= yield %>
      </section>
    </div>
  </body>
</html>

<!doctype html>
<html>
  <head>
    <title>
      <% if @channel %><%= @channel.title %> | <% end %>
      Red Cursor
    </title>
    <%= stylesheet_link_tag    "application" %>
    <%= javascript_include_tag "application" %>
    <%= csrf_meta_tags %>
    <%= users_js %>
    <% if mobile? %>
      <meta name="viewport" content="initial-scale = 1.0, user-scalable = no">
    <% end %>
  </head>
  <body<%= ' class="mobile"'.html_safe if mobile? %> data-socket-server="ws://<%= request.host %>:8000" data-api-key="<%= current_user.api_key %>">
    <a name="top"></a>

    <header class="header">
      <div class="content">
        <h1 id="title">
          Red Cursor
        </h1>
        <%= render :partial => "shared/toolbar" %>
      </div>
    </header>

    <% if !flash[:notice].blank? %>
      <div class="notice"><%= flash[:notice] %></div>
    <% end %>

    <div id="container">

      <section id="content">
        <div class="channel-search-container"></div>

        <%= yield %>
      </section>
    </div>
  </body>
</html>

Set proper websocket server url
Set proper websocket server url
