Heroku - “我们很抱歉,但出了问题” [英] Heroku — "We're sorry, but something went wrong"

查看:226
本文介绍了Heroku - “我们很抱歉,但出了问题”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好我对Heroku很新颖。我完成了我的应用程序的一部分。目前我在本地工作,但我想部署到Heroku。当我输入 heroku日志我得到了这个:

  2012-07- 30T16:36:27 + 00:00 app [web.1]:弃权警告:您在供应商/插件中使用Rails 2.3风格的插件!在Rails 4.0中将会删除对这些插件的支持。将它们移出并将它们捆绑到Gemfile中,或者将它们作为lib / myplugin / *和config / initializers / myplugin.rb折叠到您的应用程序中。有关更多信息,请参阅发行说明:http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released。 (从/app/config/environment.rb:5上的< top(required)>调用)
2012-07-30T16:36:27 + 00:00 app [web.1]:DEPRECATION警告:你在供应商/插件中有Rails 2.3风格的插件!在Rails 4.0中将会删除对这些插件的支持。将它们移出并将它们捆绑到Gemfile中,或者将它们作为lib / myplugin / *和config / initializers / myplugin.rb折叠到您的应用程序中。有关更多信息,请参阅发行说明:http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released。 (在/app/config/environment.rb:5)上从< top(required)>调用)
2012-07-30T16:36:30 + 00:00 app [web.1]:=>引导WEBrick
2012-07-30T16:36:30 + 00:00 app [web.1]:=> Rails 3.2.6应用程序在http://0.0.0.0:17050
2012-07-30T16:36:30 + 00:00 app [web.1]:=>用-d呼叫以分离
2012-07-30T16:36:30 + 00:00 app [web.1]:=> Ctrl-C关闭服务器
2012-07-30T16:36:30 + 00:00 app [web.1]:连接到由DATABASE_URL指定的数据库
2012-07-30T16:36:33+ 00:00 app [web.1]:[2012-07-30 16:36:33] INFO WEBrick 1.3.1
2012-07-30T16:36:33 + 00:00 app [web.1] :[2012-07-30 16:36:33] INFO ruby​​ 1.9.2(2011-07-09)[x86_64-linux]
2012-07-30T16:36:33 + 00:00 app [web .1]:[2012-07-30 16:36:33] INFO WEBrick :: HTTPServer#start:pid = 2 port = 17050
2012-07-30T16:36:34 + 00:00 heroku [web .1]:状态从开始更改为
2012-07-30T16:36:35 + 00:00 app [web.1]:
2012-07-30T16:36:35 + 00: 00 app [web.1]:在2012-07-30 16:36:35 +0000
2012-07-30T16:36:35 + 00:00 app [web中开始GET/为190.242.128.66 .1]:
2012-07-30T16:36:35 + 00:00 app [web.1]:通过StaticPagesController#home处理HTML
2012-07-30T16:36:35 + 00 :00 app [web.1]:在80ms内完成500次内部服务器错误
2012-07-30T16:36:35 + 00:00 app [web.1]:在布局中呈现static_pages / home.html.erb /应用程序(1.5ms)
2012-07-30T16:36:35 + 00:00 app [web.1]:
2012-07-30T16:36:35 + 00:00 app [web.1]:ActionView :: Template :: Error(defaults.js未预编译):
2012-07-30T16:36:35 + 00:00 app [web.1]:4:< title>主页< / title>
2012-07-30T16:36:35 + 00:00 app [web.1]:5:<%= csrf_meta_tag%>
2012-07-30T16:36:35 + 00:00 app [web.1]:6:
2012-07-30T16:36:35 + 00:00 app [web.1]: 7:<%= javascript_include_tag:defaults%>
2012-07-30T16:36:35 + 00:00 app [web.1]:8:< style>
2012-07-30T16:36:35 + 00:00 app [web.1]:9:body {
2012-07-30T16:36:35 + 00:00 app [web.1 ]:10:填充顶部:60px; / * 60px使容器一直到顶部栏的底部* /
2012-07-30T16:36:35 + 00:00 app [web.1]:app / views / static_pages / home .html.erb:7:'_app_views_static_pages_home_html_erb___4087131318243872015_49358580'
2012-07-30T16:36:35 + 00:00 app [web.1]:
2012-07-30T16:36:35 + 00 :00 app [web.1]:
2012-07-30T16:36:35 + 00:00 heroku [路由器]:GET newbies.herokuapp.com/ dyno = web.1 queue = 0 wait = 0ms service = 254ms status = 500 bytes = 643
2012-07-30T16:36:35 + 00:00 heroku [路由器]:GET newbies.herokuapp.com/favicon.ico dyno = web.1 queue = 0 wait = 0ms service = 11ms status = 304 bytes = 0
2012-07-30T17:41:05 + 00:00 heroku [web.1]:怠速
2012-07-30T17:41:08 + 00 :00 heroku [web.1]:使用SIGTERM
停止所有进程2012-07-30T17:41:09 + 00:00 app [web.1]:[2012-07-30 17:41:09]错误SignalException:SIGTERM
2012-07-30T17:41:09 + 00:00 app [web.1]:/usr/local/lib/ruby/1.9.1/webrick/server.rb:90:in `select'
2012-07-30T17:41:19 + 00:00 heroku [web.1]:Error R12(退出超时) - > SIGTERM
2012-07-30T17:41:19 + 00:00中至少有一个进程无法退出heroku [web.1]:使用SIGKILL停止剩余的进程
2012-07-30T17 :41:20 + 00:00 heroku [web.1]:进程已退出,状态为137
2012-07-30T17:41:20 + 00:00 heroku [web.1]:状态从上至下改变
2012-07-30T22:10:05 + 00:00 heroku [run.1]:等待客户
2012-07-30T22:10:05 + 00:00 heroku [run.1]:使用命令`bundle exec rake db:create`启动进程
2012-07-30T22:10:05 + 00:00 heroku [run.1]:状态从开始改为
2012-07- 30T22:10:11 + 00:00 heroku [run.1]:进程退出状态为0
2012-07-30T22:10:11 + 00:00 heroku [run.1]:状态从up改为完成
2012-07-30T22:10:24 + 00:00 heroku [run.1]:用命令`bundle exec rake db:migrate`启动进程
2012-07-30T22:10:24 +00:00 heroku [run.1]:等待客户
2012-07-30T22:10:25 + 00:00 heroku [run.1]:状态从开始改为
2012-07 -30T22:10:41 + 00:00 heroku [run.1] :进程已退出,状态为0
2012-07-30T22:10:41 + 00:00 heroku [run.1]:状态从更改完成
2012-07-30T22:10:54+ 00:00 heroku [web.1]:unidling
2012-07-30T22:10:54 + 00:00 heroku [web.1]:状态从下降改为开始
2012-07-30T22 :10:57 + 00:00 heroku [web.1]:用命令`bundle exec rails server -p 47690`启动进程
2012-07-30T22:11:02 + 00:00 app [web.1 ]:弃权警告:您在供应商/插件中有Rails 2.3风格的插件!在Rails 4.0中将会删除对这些插件的支持。将它们移出并将它们捆绑到Gemfile中,或者将它们作为lib / myplugin / *和config / initializers / myplugin.rb折叠到您的应用程序中。有关更多信息,请参阅发行说明:http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released。 (从/app/config/environment.rb:5上的< top(required)>中调用)
2012-07-30T22:11:02 + 00:00 app [web.1]:DEPRECATION警告:你在供应商/插件中有Rails 2.3风格的插件!在Rails 4.0中将会删除对这些插件的支持。将它们移出并将它们捆绑到Gemfile中,或者将它们作为lib / myplugin / *和config / initializers / myplugin.rb折叠到您的应用程序中。有关更多信息,请参阅发行说明:http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released。 (从/app/config/environment.rb:5上的< top(required)>调用)
2012-07-30T22:11:05 + 00:00 app [web.1]:=>启动WEBrick
2012-07-30T22:11:05 + 00:00 app [web.1]:=> Rails 3.2.6应用程序在http://0.0.0.0:47690
2012-07-30T22:11:05 + 00:00 app [web.1]:=>用-d呼叫以分离
2012-07-30T22:11:05 + 00:00 app [web.1]:=> Ctrl-C关闭服务器
2012-07-30T22:11:05 + 00:00应用[web.1]:连接到由DATABASE_URL指定的数据库
2012-07-30T22:11:08+ 00:00 app [web.1]:[2012-07-30 22:11:08]信息WEBrick 1.3.1
2012-07-30T22:11:08 + 00:00 app [web.1] :[2012-07-30 22:11:08] INFO ruby​​ 1.9.2(2011-07-09)[x86_64-linux]
2012-07-30T22:11:08 + 00:00 app [web .1]:[2012-07-30 22:11:08] INFO WEBrick :: HTTPServer#start:pid = 2 port = 47690
2012-07-30T22:11:09 + 00:00 heroku [web .1]:状态从开始更改为
2012-07-30T22:11:10 + 00:00应用[web.1]:
2012-07-30T22:11:10 + 00: 00 app [web.1]:
2012-07-30T22:11:10 + 00:00 app [web.1]:开始GET/为190.242.128.66于2012-07-30 22:11 :10 +0000
2012-07-30T22:11:10 + 00:00 app [web.1]:通过StaticPagesController#home处理HTML
2012-07-30T22:11:10 + 00 :00 app [web.1]:在83ms内完成500个内部服务器错误
2012-07-30T22:11:10 + 00:00 app [web.1]:在布局中渲染static_pages / home.html.erb /应用程序(1.6ms)
2012-07-30T22:11:10 + 00:00 app [web.1]:
2012-07-30T22:11:10 + 00:00 app [web.1]:ActionView :: Template :: Error(defaults.js未预编译):
2012-07-30T22:11:10 + 00:00 app [web.1]:4:< title>主页< / title>
2012-07-30T22:11:10 + 00:00 app [web.1]:5:<%= csrf_meta_tag%>
2012-07-30T22:11:10 + 00:00 app [web.1]:6:
2012-07-30T22:11:10 + 00:00 app [web.1]: 7:<%= javascript_include_tag:defaults%>
2012-07-30T22:11:10 + 00:00 app [web.1]:8:< style>
2012-07-30T22:11:10 + 00:00 app [web.1]:9:body {
2012-07-30T22:11:10 + 00:00 app [web.1 ]:10:填充顶部:60px; / * 60px使容器一直到顶部栏的底部* /
2012-07-30T22:11:10 + 00:00 app [web.1]:
2012-07 -30T22:11:10 + 00:00 app [web.1]:
2012-07-30T22:11:10 + 00:00 app [web.1]:app / views / static_pages / home.html .erb:7:在`_app_views_static_pages_home_html_erb___517725991346781271_49385800'
2012-07-30T22:11:10 + 00:00 heroku [路由器]:GET newbies.herokuapp.com/ dyno = web.1 queue = 0 wait = 0ms service = 264ms状态= 500字节= 643
2012-07-30T22:12:25 + 00:00应用[web.1]:
2012-07-30T22:12:25 + 00:00应用[web.1]:
2012-07-30T22:12:25 + 00:00 app [web.1]:开始GET/为190.242.128.66于2012-07-30 22:12:25 +0000
2012-07-30T22:12:25 + 00:00 app [web.1]:通过StaticPagesController#home处理HTML
2012-07-30T22:12:25 + 00:00 app [web.1]:在2ms内完成500次内部服务器错误
2012-07-30T22:12:25 + 00:00 app [web.1]:在布局/应用程序中渲染static_pages / home.html.erb (0.9ms)
2012-07-30T22:12:25 + 00:00应用[web.1]:
20 12-07-30T22:12:25 + 00:00 app [web.1]:ActionView :: Template :: Error(defaults.js未预编译):
2012-07-30T22:12:25 +00:00 app [web.1]:4:< title>主页< / title>
2012-07-30T22:12:25 + 00:00 app [web.1]:5:<%= csrf_meta_tag%>
2012-07-30T22:12:25 + 00:00 app [web.1]:6:
2012-07-30T22:12:25 + 00:00 app [web.1]: 7:<%= javascript_include_tag:defaults%>
2012-07-30T22:12:25 + 00:00 app [web.1]:8:< style>
2012-07-30T22:12:25 + 00:00 app [web.1]:10:padding-top:60px; / * 60px使容器一直到顶部栏的底部* /
2012-07-30T22:12:25 + 00:00 app [web.1]:9:body {
2012-07-30T22:12:25 + 00:00 app [web.1]:app / views / static_pages / home.html.erb:7:in _app_views_static_pages_home_html_erb___517725991346781271_49385800'
2012-07-30T22:12 :25 + 00:00 app [web.1]:
2012-07-30T22:12:25 + 00:00 app [web.1]:
2012-07-30T22:12:25 +00:00 heroku [router]:GET newbies.herokuapp.com/ dyno = web.1 queue = 0 wait = 0ms service = 14ms status = 500 bytes = 643

当我输入 heroku open 它显示我们很抱歉,但出错了。有人知道为什么会发生这种情况吗?

解决方案

资产应该预编译
添加到您的配置/application.rb

  config.assets.initialize_on_precompile = false 

更多:
https://devcenter.heroku.com/articles/rails3x-asset-pipeline-cedar/


Hi I'm pretty new on Heroku. I have finished part of my app. Currently I'm working locally, but I want to deploy to Heroku. When I typed heroku logs I got this:

2012-07-30T16:36:27+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style  plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them  out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and  config/initializers/myplugin.rb. See the release notes for more on this:  http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top  (required)> at /app/config/environment.rb:5)
2012-07-30T16:36:27+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style  plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them  out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and  config/initializers/myplugin.rb. See the release notes for more on this:  http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top  (required)> at /app/config/environment.rb:5)
2012-07-30T16:36:30+00:00 app[web.1]: => Booting WEBrick
2012-07-30T16:36:30+00:00 app[web.1]: => Rails 3.2.6 application starting in production on http://0.0.0.0:17050
2012-07-30T16:36:30+00:00 app[web.1]: => Call with -d to detach
2012-07-30T16:36:30+00:00 app[web.1]: => Ctrl-C to shutdown server
2012-07-30T16:36:30+00:00 app[web.1]: Connecting to database specified by DATABASE_URL
2012-07-30T16:36:33+00:00 app[web.1]: [2012-07-30 16:36:33] INFO  WEBrick 1.3.1
2012-07-30T16:36:33+00:00 app[web.1]: [2012-07-30 16:36:33] INFO  ruby 1.9.2 (2011-07-09) [x86_64-linux]
2012-07-30T16:36:33+00:00 app[web.1]: [2012-07-30 16:36:33] INFO  WEBrick::HTTPServer#start: pid=2 port=17050
2012-07-30T16:36:34+00:00 heroku[web.1]: State changed from starting to up
2012-07-30T16:36:35+00:00 app[web.1]: 
2012-07-30T16:36:35+00:00 app[web.1]: Started GET "/" for 190.242.128.66 at 2012-07-30  16:36:35 +0000
2012-07-30T16:36:35+00:00 app[web.1]: 
2012-07-30T16:36:35+00:00 app[web.1]: Processing by StaticPagesController#home as HTML
2012-07-30T16:36:35+00:00 app[web.1]: Completed 500 Internal Server Error in 80ms
2012-07-30T16:36:35+00:00 app[web.1]:   Rendered static_pages/home.html.erb within layouts/application (1.5ms)
2012-07-30T16:36:35+00:00 app[web.1]: 
2012-07-30T16:36:35+00:00 app[web.1]: ActionView::Template::Error (defaults.js isn't precompiled):
2012-07-30T16:36:35+00:00 app[web.1]:     4:     <title>Home</title>
2012-07-30T16:36:35+00:00 app[web.1]:     5:     <%= csrf_meta_tag %>
2012-07-30T16:36:35+00:00 app[web.1]:     6:     
2012-07-30T16:36:35+00:00 app[web.1]:     7:     <%= javascript_include_tag :defaults %>
2012-07-30T16:36:35+00:00 app[web.1]:     8:     <style>
2012-07-30T16:36:35+00:00 app[web.1]:     9:       body {
2012-07-30T16:36:35+00:00 app[web.1]:     10:         padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
2012-07-30T16:36:35+00:00 app[web.1]:   app/views/static_pages/home.html.erb:7:in `_app_views_static_pages_home_html_erb___4087131318243872015_49358580'
2012-07-30T16:36:35+00:00 app[web.1]: 
2012-07-30T16:36:35+00:00 app[web.1]: 
2012-07-30T16:36:35+00:00 heroku[router]: GET newbies.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=254ms status=500 bytes=643
2012-07-30T16:36:35+00:00 heroku[router]: GET newbies.herokuapp.com/favicon.ico dyno=web.1 queue=0 wait=0ms service=11ms status=304 bytes=0
2012-07-30T17:41:05+00:00 heroku[web.1]: Idling
2012-07-30T17:41:08+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2012-07-30T17:41:09+00:00 app[web.1]: [2012-07-30 17:41:09] ERROR SignalException: SIGTERM
2012-07-30T17:41:09+00:00 app[web.1]:   /usr/local/lib/ruby/1.9.1/webrick/server.rb:90:in `select'
2012-07-30T17:41:19+00:00 heroku[web.1]: Error R12 (Exit timeout) -> At least one process failed to exit within 10 seconds of SIGTERM
2012-07-30T17:41:19+00:00 heroku[web.1]: Stopping remaining processes with SIGKILL
2012-07-30T17:41:20+00:00 heroku[web.1]: Process exited with status 137
2012-07-30T17:41:20+00:00 heroku[web.1]: State changed from up to down
2012-07-30T22:10:05+00:00 heroku[run.1]: Awaiting client
2012-07-30T22:10:05+00:00 heroku[run.1]: Starting process with command `bundle exec rake db:create`
2012-07-30T22:10:05+00:00 heroku[run.1]: State changed from starting to up
2012-07-30T22:10:11+00:00 heroku[run.1]: Process exited with status 0
2012-07-30T22:10:11+00:00 heroku[run.1]: State changed from up to complete
2012-07-30T22:10:24+00:00 heroku[run.1]: Starting process with command `bundle exec rake db:migrate`
2012-07-30T22:10:24+00:00 heroku[run.1]: Awaiting client
2012-07-30T22:10:25+00:00 heroku[run.1]: State changed from starting to up
2012-07-30T22:10:41+00:00 heroku[run.1]: Process exited with status 0
2012-07-30T22:10:41+00:00 heroku[run.1]: State changed from up to complete
2012-07-30T22:10:54+00:00 heroku[web.1]: Unidling
2012-07-30T22:10:54+00:00 heroku[web.1]: State changed from down to starting
2012-07-30T22:10:57+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 47690`
2012-07-30T22:11:02+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2012-07-30T22:11:02+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2012-07-30T22:11:05+00:00 app[web.1]: => Booting WEBrick
2012-07-30T22:11:05+00:00 app[web.1]: => Rails 3.2.6 application starting in production on http://0.0.0.0:47690
2012-07-30T22:11:05+00:00 app[web.1]: => Call with -d to detach
2012-07-30T22:11:05+00:00 app[web.1]: => Ctrl-C to shutdown server
2012-07-30T22:11:05+00:00 app[web.1]: Connecting to database specified by DATABASE_URL
2012-07-30T22:11:08+00:00 app[web.1]: [2012-07-30 22:11:08] INFO  WEBrick 1.3.1
2012-07-30T22:11:08+00:00 app[web.1]: [2012-07-30 22:11:08] INFO  ruby 1.9.2 (2011-07-09) [x86_64-linux]
2012-07-30T22:11:08+00:00 app[web.1]: [2012-07-30 22:11:08] INFO  WEBrick::HTTPServer#start: pid=2 port=47690
2012-07-30T22:11:09+00:00 heroku[web.1]: State changed from starting to up
2012-07-30T22:11:10+00:00 app[web.1]: 
2012-07-30T22:11:10+00:00 app[web.1]: 
2012-07-30T22:11:10+00:00 app[web.1]: Started GET "/" for 190.242.128.66 at 2012-07-30 22:11:10 +0000
2012-07-30T22:11:10+00:00 app[web.1]: Processing by StaticPagesController#home as HTML
2012-07-30T22:11:10+00:00 app[web.1]: Completed 500 Internal Server Error in 83ms
2012-07-30T22:11:10+00:00 app[web.1]:   Rendered static_pages/home.html.erb within layouts/application (1.6ms)
2012-07-30T22:11:10+00:00 app[web.1]: 
2012-07-30T22:11:10+00:00 app[web.1]: ActionView::Template::Error (defaults.js isn't precompiled):
2012-07-30T22:11:10+00:00 app[web.1]:     4:     <title>Home</title>
2012-07-30T22:11:10+00:00 app[web.1]:     5:     <%= csrf_meta_tag %>
2012-07-30T22:11:10+00:00 app[web.1]:     6:     
2012-07-30T22:11:10+00:00 app[web.1]:     7:     <%= javascript_include_tag :defaults %>
2012-07-30T22:11:10+00:00 app[web.1]:     8:     <style>
2012-07-30T22:11:10+00:00 app[web.1]:     9:       body {
2012-07-30T22:11:10+00:00 app[web.1]:     10:         padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
2012-07-30T22:11:10+00:00 app[web.1]: 
2012-07-30T22:11:10+00:00 app[web.1]: 
2012-07-30T22:11:10+00:00 app[web.1]:   app/views/static_pages/home.html.erb:7:in `_app_views_static_pages_home_html_erb___517725991346781271_49385800'
2012-07-30T22:11:10+00:00 heroku[router]: GET newbies.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=264ms status=500 bytes=643
2012-07-30T22:12:25+00:00 app[web.1]: 
2012-07-30T22:12:25+00:00 app[web.1]: 
2012-07-30T22:12:25+00:00 app[web.1]: Started GET "/" for 190.242.128.66 at 2012-07-30 22:12:25 +0000
2012-07-30T22:12:25+00:00 app[web.1]: Processing by StaticPagesController#home as HTML
2012-07-30T22:12:25+00:00 app[web.1]: Completed 500 Internal Server Error in 2ms
2012-07-30T22:12:25+00:00 app[web.1]:   Rendered static_pages/home.html.erb within layouts/application (0.9ms)
2012-07-30T22:12:25+00:00 app[web.1]: 
2012-07-30T22:12:25+00:00 app[web.1]: ActionView::Template::Error (defaults.js isn't precompiled):
2012-07-30T22:12:25+00:00 app[web.1]:     4:     <title>Home</title>
2012-07-30T22:12:25+00:00 app[web.1]:     5:     <%= csrf_meta_tag %>
2012-07-30T22:12:25+00:00 app[web.1]:     6:     
2012-07-30T22:12:25+00:00 app[web.1]:     7:     <%= javascript_include_tag :defaults %>
2012-07-30T22:12:25+00:00 app[web.1]:     8:     <style>
2012-07-30T22:12:25+00:00 app[web.1]:     10:         padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
2012-07-30T22:12:25+00:00 app[web.1]:     9:       body {
2012-07-30T22:12:25+00:00 app[web.1]:   app/views/static_pages/home.html.erb:7:in `_app_views_static_pages_home_html_erb___517725991346781271_49385800'
2012-07-30T22:12:25+00:00 app[web.1]: 
2012-07-30T22:12:25+00:00 app[web.1]: 
2012-07-30T22:12:25+00:00 heroku[router]: GET newbies.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=14ms status=500 bytes=643

And when I type heroku open it shows me "We're sorry, but something went wrong." Does anyone know why this happens?

解决方案

assets should be precompiled add to your config/application.rb

config.assets.initialize_on_precompile = false

more at: https://devcenter.heroku.com/articles/rails3x-asset-pipeline-cedar/

这篇关于Heroku - “我们很抱歉,但出了问题”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆