在heroku上重命名为Ruby on Rails应用程序,现在它不起作用

时间:2013-04-17 20:20:00

标签: ruby-on-rails ruby-on-rails-3 heroku

我启动了我的应用程序,填充了数据库并且多次访问过它而没有任何问题。但我只是通过登录我的heroku帐户并访问应用程序设置来更改应用程序的名称。现在我的应用程序出现故障。

之后我阅读了如何更改应用名称的指南,最终结果是一样的。我只是改变了名称,现在它不起作用。有人可以帮我解决这个问题。我还删除了指向heroku的远程别名,并用正确的地址替换它们。

感谢您的帮助

Heroku Logs (我会尝试再清理一下)

    ←[36m2013-04-17T20:27:29.659316+00:00 app[web.1]:←[0m Redirected to http://costrecovery-post.herokuapp.com/
    ←[36m2013-04-17T20:27:29.659316+00:00 app[web.1]:←[0m Completed 302 Found in 4ms
    (ActiveRecord: 1.7ms)
    ←[36m2013-04-17T20:27:29.750709+00:00 app[web.1]:←[0m Started GET "/" for 74.143.68.203 at 2013-04-1720:27:29 +0000
    ←[36m2013-04-17T20:27:29.753863+00:00 app[web.1]:←[0m Processing by IncidentsController#index as HTML
    ←[36m2013-04-17T20:27:29.962842+00:00 app[web.1]:←[0m   Rendered incidents/index.html.erb within layouts/application (15.5ms)
    ←[36m2013-04-17T20:27:29.963111+00:00 app[web.1]:←[0m Completed 500 Internal Server Error in 207ms
    ←[36m2013-04-17T20:27:29.966640+00:00 app[web.1]:←[0m
    ←[36m2013-04-17T20:27:29.966640+00:00 app[web.1]:←[0m ActionView::Template::Error (PG::Error: ERROR:  relation "users" does not exist at character 24
    ←[36m2013-04-17T20:27:29.966640+00:00 app[web.1]:←[0m : SELECT  "users".* FROM "users"  WHERE "users"."id" = $1 LIMIT 1):
    ←[36m2013-04-17T20:27:29.966640+00:00 app[web.1]:←[0m     26:   <td><%= incident.location %></td>
    ←[36m2013-04-17T20:27:29.966640+00:00 app[web.1]:←[0m     27:   <td><b><%= incident.status %></b> <% if current_user.admin == "yes" %><%= link_to "change", changestatus_incident_path(incident) %><% end %></td>
    ←[36m2013-04-17T20:27:29.966640+00:00 app[web.1]:←[0m     28:   <% if current_us
er.admin == "yes" %>
    ←[36m2013-04-17T20:27:29.966640+00:00 app[web.1]:←[0m     29:   <td><%=     User.find(incident.user_id).profile.name %> (<%= User.find(incident.user_id).profile.department %>)</td>
    ←[36m2013-04-17T20:27:29.966640+00:00 app[web.1]:←[0m     30:   <% end %>
    ←[36m2013-04-17T20:27:29.966640+00:00 app[web.1]:←[0m     31:     <td><%= link_t
o 'View Time Sheet', incident_timesheet_path(incident) %></td>
    ←[36m2013-04-17T20:27:29.966640+00:00 app[web.1]:←[0m     32:   <td><%= link_to'Delete Incident', incident, :confirm => 'Are you sure?', :method => :delete %><
/td>
    ←[36m2013-04-17T20:27:29.966901+00:00 app[web.1]:←[0m   app/views/incidents/inde
x.html.erb:29:in `block in _app_views_incidents_index_html_erb___137155814596393
6561_33092660'
    ←[36m2013-04-17T20:27:29.966901+00:00 app[web.1]:←[0m   app/views/incidents/inde
x.html.erb:22:in `each'
    ←[36m2013-04-17T20:27:29.966901+00:00 app[web.1]:←[0m   app/views/incidents/inde
x.html.erb:22:in `_app_views_incidents_index_html_erb___1371558145963936561_3309
2660'
    ←[36m2013-04-17T20:27:29.966901+00:00 app[web.1]:←[0m   app/controllers/incident
s_controller.rb:22:in `index'
    ←[36m2013-04-17T20:27:29.966901+00:00 app[web.1]:←[0m
    ←[36m2013-04-17T20:27:29.966901+00:00 app[web.1]:←[0m
    ←[33m2013-04-17T20:27:29.977182+00:00 heroku[router]:←[0m at=info method=GET pat
h=/ host=costrecovery-post.herokuapp.com fwd="74.143.68.203" dyno=web.1 connect=
5ms service=246ms status=500 bytes=643

1 个答案:

答案 0 :(得分:2)

从命令行尝试:

$ heroku apps:rename newname
-> http://newname.heroku.com/ | git@heroku.com:newname.git
-> Git remote heroku updated