Fix app_name.

This commit is contained in:
Akinori MUSHA 2014-08-30 15:55:17 +09:00
parent 171a8ba90d
commit f84a9c24eb

View file

@ -9,7 +9,7 @@
<%= devise_error_messages! %>
<% if ENV['ON_HEROKU'] && User.count.zero? %>
<div class="heroku-instruction">
<% app_name = request.host[/\A.+/] %>
<% app_name = request.host[/\A[^.]+/] %>
<p>If you are the owner of this application, run the following commands to complete the setup.</p>
<%= content_tag :pre do -%>
heroku git:clone <%= app_name %>