Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/56.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 在heroku上重命名了Ruby on Rails应用程序,现在它不工作了_Ruby On Rails_Ruby On Rails 3_Heroku - Fatal编程技术网

Ruby on rails 在heroku上重命名了Ruby on Rails应用程序,现在它不工作了

Ruby on rails 在heroku上重命名了Ruby on Rails应用程序,现在它不工作了,ruby-on-rails,ruby-on-rails-3,heroku,Ruby On Rails,Ruby On Rails 3,Heroku,我启动了我的应用程序,填充了数据库,并多次访问它,没有任何问题。但我只是通过登录我的heroku帐户并访问应用程序设置来更改应用程序的名称。现在我的应用程序出现故障 之后,我阅读了如何更改应用程序名称的指南,最终结果是一样的。我只是换了个名字,但现在不起作用了。有人能帮我解决这个问题吗。我还删除了指向heroku的远程别名,并将其替换为正确的地址 谢谢你的帮助 Heroku日志我会再清理一下 ←[36m2013-04-17T20:27:29.659316+00:00 app[web.1]

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

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

谢谢你的帮助

Heroku日志我会再清理一下

    ←[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

请从命令行尝试以下操作:

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

您可以运行heroku日志并发布结果吗?Define不起作用。它自动默认为500.html页面。该错误是不运行heroku run rake db:Migrate的典型错误。您可以查看heroku pg:psql并在其日志中\dt查看表是否存在。