当我尝试将我的应用程序推到Heroku上时发生500内部服务器错误 [英] 500 internal server error when I try to push my app onto Heroku

查看:166
本文介绍了当我尝试将我的应用程序推到Heroku上时发生500内部服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




  • 500内部服务器错误

  • ActionView :: Template :: Error ... application.css不是预编译的(请参阅附加的Heroku日志)
  • 另外,ActionController :: RoutingError(没有路由匹配[GET] /assets/rails.png



我使用的是Twitter Bootstrap 2.0.1和Rails 3.1.1(请参阅下面的Gemfile) p>

任何指导都将非常感谢!






HEROKU LOGS

  2012-04-06T16:49:38 + 00:00 app [web.1]:
2012-04-06T16:49:38 + 00:00 app [web.1]:开始GET/为115.186.162.46于2012-04-06 09:49:38 -0700
2012 -04-06T16:49:38 + 00:00 app [web.1]:通过PostsController处理#new as HTML
2012-04-06T16:49:38 + 00:00 app [web.1]:呈现的帖子/_form.html.erb(1.4ms)
2012-04-06T16:49:38 + 00:00 app [web.1]:在布局/应用程序中呈现posts / new.html.erb(1.8 ms)
2012-04-06 T16:49:38 + 00:00应用[web.1]:在3ms内完成500次内部服务器错误
2012-04-06T16:49:38 + 00:00 app [web.1]:
2012-04-06T16:49:38 + 00:00 app [web.1]:ActionView :: Template :: Error(application.css未预编译):
2012-04-06T16: 38 + 00:00 app [web.1]:6:< title> Weddoo!< / title>
2012-04-06T16:49:38 + 00:00 app [web.1]:7:<%= csrf_meta_tags%>
2012-04-06T16:49:38 + 00:00 app [web.1]:8:
2012-04-06T16:49:38 + 00:00 app [web.1]: 9:<%= stylesheet_link_tagapplication,:media => 全部%>
2012-04-06T16:49:38 + 00:00 app [web.1]:10:
2012-04-06T16:49:38 + 00:00 app [web.1]: 11:< link href =images / favicon.ico =快捷图标>
2012-04-06T16:49:38 + 00:00 app [web.1]:12:< link href =images / apple-touch-icon.png =apple-touch-icon >
2012-04-06T16:49:38 + 00:00 app [web.1]:app / views / layouts / application.html.erb:9:in _app_views_layouts_application_html_erb__819333137240276330_18641900'
2012-04- 06T16:49:38 + 00:00 app [web.1]:app / controllers / posts_controller.rb:24:在`new'
2012-04-06T16:49:38 + 00:00 app [web .1]:
2012-04-06T16:49:38 + 00:00 app [web.1]:
2012-04-06T16:49:38 + 00:00 app [web.1 ]:cache:[GET /] miss
2012-04-06T16:49:38 + 00:00 heroku [router]:GET weddoo.heroku.com/ dyno = web.1 queue = 0 wait = 0ms service = 11ms status = 500 bytes = 728
2012-04-06T16:49:38 + 00:00 heroku [nginx]:115.186.162.46 - - [06 / Apr / 2012:16:49:38 +0000] GET / HTTP / 1.1500 728 - Mozilla / 5.0(Macintosh; Intel Mac OS X 10_7_2)AppleWebKit / 534.52.7(KHTML,如Gecko)Version / 5.1.2 Safari / 534.52.7weddoo.heroku .com
2012-04-06T16:49:39 + 00:00 app [web.1]:
2012-04-06T16:49:39 + 00:00 app [web.1]:
2012-04-06T16:49:39 + 00:00 app [web.1]:开始GET/为115.186.162.46于2012-04-06 09:49:39 -0700
2012-04-06T16:49:39 + 00:00 app [web.1]:通过PostsController处理#new as HTML
2012-04-06T16:49:39 + 00:00 app [web.1] :在布局/应用程序(1.6ms)内呈现posts / new.html.erb
2012-04-06T16:49:39 + 00:00 app [web.1]:呈现的帖子/ _form.html.erb 1.4ms)
2012-04-06T16:49:39 + 00:00 app [web.1]:已完成500次内部服务器错误(以3ms计)
2012-04-06T16:49:39 + 00: 00 app [web.1]:
2012-04-06T16:49:39 + 00:00 app [web.1]:ActionView :: Template :: Error(application.css未预编译):
2012-04-06T16:49:39 + 00:00 app [web.1]:6:< title> Weddoo!< / title>
2012-04-06T16:49:39 + 00:00 app [web.1]:9:<%= stylesheet_link_tagapplication,:media => 全部%>
2012-04-06T16:49:39 + 00:00 app [web.1]:10:
2012-04-06T16:49:39 + 00:00 app [web.1]: 11:< link href =images / favicon.ico =快捷图标>
2012-04-06T16:49:39 + 00:00 app [web.1]:7:<%= csrf_meta_tags%>
2012-04-06T16:49:39 + 00:00 app [web.1]:8:
2012-04-06T16:49:39 + 00:00 app [web.1]: 12:< link href =images / apple-touch-icon.png =apple-touch-icon>
2012-04-06T16:49:39 + 00:00 app [web.1]:app / views / layouts / application.html.erb:9:in _app_views_layouts_application_html_erb__819333137240276330_18641900'
2012-04- 06T16:49:39 + 00:00 app [web.1]:app / controllers / posts_controller.rb:24:在`new'
2012-04-06T16:49:39 + 00:00 app [web .1]:
2012-04-06T16:49:39 + 00:00 app [web.1]:
2012-04-06T16:49:39 + 00:00 app [web.1 ]:cache:[GET /] miss
2012-04-06T16:49:39 + 00:00 heroku [router]:GET weddoo.heroku.com/ dyno = web.1 queue = 0 wait = 0ms service = 10ms status = 500 bytes = 728
2012-04-06T16:49:39 + 00:00 heroku [nginx]:115.186.162.46 - - [06 / Apr / 2012:16:49:39 +0000] GET / HTTP / 1.1500 728 - Mozilla / 5.0(Macintosh; Intel Mac OS X 10_7_2)AppleWebKit / 534.52.7(KHTML,如Gecko)Version / 5.1.2 Safari / 534.52.7weddoo.heroku .com
2012-04-06T16:51:32 + 00:00 heroku [slugc]:Slug编辑开始
2012-04-06T16:51:46 + 00:00 heroku [api]:发布v8由postkhalid@yahoo.com创建
2012-04-06T16:51:46 + 00:00 heroku [api ]:通过postkhalid@yahoo.com
部署db6820d 2012-04-06T16:51:46 + 00:00 heroku [web.1]:状态从高到低反弹
2012-04-06T16: 51:46 + 00:00 heroku [web.1]:状态从弹跳改为创建
2012-04-06T16:51:46 + 00:00 heroku [web.1]:状态已从创建更改为启动
2012-04-06T16:51:47 + 00:00 heroku [slugc]:Slug汇编完成
2012-04-06T16:51:48 + 00:00 heroku [web.1]:停止过程使用SIGTERM
2012-04-06T16:51:48 + 00:00 app [web.1]:>>正在停止...
2012-04-06T16:51:50 + 00:00 heroku [web.1]:进程已退出,状态为0
2012-04-06T16:51:51 + 00:00 heroku [web.1]:用命令`thin -p 30481 -e制作-R /home/heroku_rack/heroku.ru start`启动进程
2012-04-06T16:51:55 + 00:00 app [ web.1]:>>瘦web服务器(v1.2.6代号Crazy Delicious)
2012-04-06T16:51:55 + 00:00 app [web.1]:>>最大连接数设置为1024
2012-04-06T16:51:55 + 00:00 app [web.1]:>>听取0.0.0.0:30481,CTRL + C停止
2012-04-06T16:51:56 + 00:00 heroku [web.1]:状态从开始改为
2012-04 -06T16:51:56 + 00:00 heroku [rake.1]:从创建状态更改为开始
2012-04-06T16:52:02 + 00:00应用[rake.1]:等待客户端
2012-04-06T16:52:02 + 00:00 heroku [rake.1]:状态从开始更改为
2012-04-06T16:52:02 + 00:00应用[rake。 1]:使用命令`bundle exec rake db:migrate`启动进程
2012-04-06T16:52:07 + 00:00 heroku [rake.1]:进程退出状态0
2012- 04-06T16:52:07 + 00:00 heroku [rake.1]:状态从最初变为完成
2012-04-06T16:52:20 + 00:00 app [web.1]:
2012-04-06T16:52:20 + 00:00 app [web.1]:
2012-04-06T16:52:20 + 00:00 app [web.1]:Started GET/ assets / rails.pngfor 115.186.162.46 at 2012-04-06 09:52:20 -0700
2012-04-06T16:52:20 + 00:00 heroku [路由器]:GET weddoo.heroku。 com / assets / rails.png dyno = web.1 queue = 0 wait = 0ms service = 80ms status = 404 bytes = 728
2012-04-06T16:52:20 + 00:00 app [web.1]:
2012-04-06T16:52:20 + 00:00 app [web.1]:ActionController :: RoutingError(没有路由匹配[GET]/assets/rails.png ):
2012-04-06T16:52:20 + 00:00 app [web.1]:
2012-04-06T16:52:20 + 00:00 app [web.1]:
2012-04-06T16:52:20 + 00:00 app [web.1]:
2012-04-06T16:52:20 + 00:00 app [web.1]:cache: [GET /assets/rails.png] miss
2012-04-06T16:52:21 + 00:00 heroku [nginx]:115.186.162.46 - - [06 / Apr / 2012:16:52:21 + 0000]GET /assets/rails.png HTTP / 1.1404 728http://weddoo.heroku.com/Mozilla / 5.0(Macintosh;英特尔Mac OS X 10_7_2)AppleWebKit / 534.52.7(KHTML,如Gecko)版本/ 5.1.2 Safari / 534.52.7weddoo.heroku.com
2012-04-06T16:52:23 + 00:00 app [web.1]:
2012-04-06T16:52:23 + 00:00 app [web.1]:
2012-04-06T16:52:23 + 00:00 app [ web.1]:在2012-04-06 09:52:23 -0700
2012-04-06T16:52:23 + 00:00 app [web.1]上开始GET/为115.186.162.46 :通过PostsController处理#new as HTML
2012-04-06T16:52:23 + 00:00 app [web.1]:渲染帖子/ _form.html.erb(25.6ms)
2012- 04-06T16:52:23 + 00:00 app [web.1]:在布局/应用程序中提交posts / new.html.erb(53.8ms)
2012-04-06T16:52:23 + 00: 00 app [web.1]:ActionView :: Template :: Error(application.css未预编译):
2012-04-06T16:52:23 + 00:00 app [web.1]:Completed在150ms内发生500次内部伺服器错误
2012-04-06T16:52:23 + 00:00 app [web.1]:6:< title> Weddoo!< / title>
2012-04 -06T16:52:23 + 00:00 app [web.1]:
2012-04-06T16:52:23 + 00:00 app [web.1]:7:<%= csrf_meta_tags%> ;
2012-04-06T16:52:23 + 00:00 app [web.1]:8:
2012-04-06T16:52:23 + 00:00 app [web.1]:10:
2012-04-06T16:52:23 + 00:00 app [web.1]:9:<%= stylesheet_link_tagapplication,:media => 全部%>
2012-04-06T16:52:23 + 00:00 app [web.1]:11:< link href =images / favicon.ico =shortcut icon>
2012-04-06T16:52:23 + 00:00 heroku [router]:GET weddoo.heroku.com/ dyno = web.1 queue = 0 wait = 0ms service = 206ms status = 500 bytes = 728
2012-04-06T16:52:23 + 00:00 app [web.1]:12:< link href =images / apple-touch-icon.png =apple-touch-icon >
2012-04-06T16:52:23 + 00:00 app [web.1]:app / views / layouts / application.html.erb:9:in _app_views_layouts_application_html_erb___37461260917978840_28780360'
2012-04- 06T16:52:23 + 00:00 app [web.1]:app / controllers / posts_controller.rb:24:在`new'
2012-04-06T16:52:23 + 00:00 app [web .1]:
2012-04-06T16:52:23 + 00:00 app [web.1]:
2012-04-06T16:52:23 + 00:00 app [web.1 ]:cache:[GET /] miss
2012-04-06T16:52:24 + 00:00 heroku [nginx]:115.186.162.46 - - [06 / Apr / 2012:16:52:24 +0000 ]GET / HTTP / 1.1500 728 - Mozilla / 5.0(Macintosh; Intel Mac OS X 10_7_2)AppleWebKit / 534.52.7(KHTML,如Gecko)Version / 5.1.2 Safari / 534.52.7weddoo。 heroku.com






GEMFILE

  source'http://rubygems.org'

gem'rails','3.1 .1'

#Bundle edge Rails改为:
#gem'rails',:git => 'git://github.com/rails/rails.git'

gem'sqlite3'
gem'pg'
gem'json'
gemtwitter -bootstrap-rails,〜> 2.0.1.0

#默认情况下,Gems仅用于资产并且不需要
#。
group:assets do
gem'sass-rails','〜> 3.1.4'
gem'咖啡栏','〜> 3.1.1'
gem'uglifier','> = 1.0.3'
结束

gem'jquery-rails'

#To使用ActiveModel has_secure_password
#gem'bcrypt-ruby','〜> 3.0.0'

#使用独角兽作为web服务器
#gem'unicorn'

#使用Capistrano部署
#gem'capistrano'

#使用调试器
#gem'ruby-debug'

RAKEFILE

 #!/ usr / bin / env rake 
#添加您自己的以.rake结尾的lib / tasks文件中的任务,
#例如lib / tasks / capistrano.rake中的任务,它们将自动提供给Rake。

需要File.expand_path('../ config / application',__FILE__)

Mysalary :: Application.load_tasks

HEROKU信息

  === weddoo 
插件:共享数据库5MB
数据库大小:64k
Dynos:1
Git URL:git@heroku.com:weddoo.git
所有者: postkhalid@yahoo.com
回扣大小:11M
S Size大小:11M
堆叠:bamboo-mri-1.9.2
网址:http://weddoo.heroku.com /
Workers:0


解决方案

你提供的 heroku info 我看到你在竹堆栈上,并且该堆栈不支持Rails 3.1+。只有雪松堆栈支持Rails 3.1+。您需要使用以下命令在雪松堆栈上创建一个新应用程序:

  heroku create --stack cedar 


I am facing this problem upon pushing my app to Heroku:

  • 500 internal server error
  • ActionView::Template::Error...application.css isn't precompiled (see attached Heroku logs)
  • Also, ActionController::RoutingError (No route matches [GET] "/assets/rails.png"

I am using Twitter Bootstrap 2.0.1 and Rails 3.1.1 (see Gemfile below)

Any guidance would be much appreciated!


HEROKU LOGS

2012-04-06T16:49:38+00:00 app[web.1]: 
2012-04-06T16:49:38+00:00 app[web.1]: Started GET "/" for 115.186.162.46 at 2012-04-06 09:49:38 -0700
2012-04-06T16:49:38+00:00 app[web.1]:   Processing by PostsController#new as HTML
2012-04-06T16:49:38+00:00 app[web.1]: Rendered posts/_form.html.erb (1.4ms)
2012-04-06T16:49:38+00:00 app[web.1]: Rendered posts/new.html.erb within layouts/application (1.8ms)
2012-04-06T16:49:38+00:00 app[web.1]: Completed 500 Internal Server Error in 3ms
2012-04-06T16:49:38+00:00 app[web.1]: 
2012-04-06T16:49:38+00:00 app[web.1]: ActionView::Template::Error (application.css isn't precompiled):
2012-04-06T16:49:38+00:00 app[web.1]:     6:     <title>Weddoo!</title>
2012-04-06T16:49:38+00:00 app[web.1]:     7:     <%= csrf_meta_tags %>
2012-04-06T16:49:38+00:00 app[web.1]:     8: 
2012-04-06T16:49:38+00:00 app[web.1]:     9:     <%= stylesheet_link_tag "application", :media => "all" %>
2012-04-06T16:49:38+00:00 app[web.1]:     10: 
2012-04-06T16:49:38+00:00 app[web.1]:     11:     <link href="images/favicon.ico" rel="shortcut icon">
2012-04-06T16:49:38+00:00 app[web.1]:     12:     <link href="images/apple-touch-icon.png" rel="apple-touch-icon">
2012-04-06T16:49:38+00:00 app[web.1]:   app/views/layouts/application.html.erb:9:in `_app_views_layouts_application_html_erb__819333137240276330_18641900'
2012-04-06T16:49:38+00:00 app[web.1]:   app/controllers/posts_controller.rb:24:in `new'
2012-04-06T16:49:38+00:00 app[web.1]: 
2012-04-06T16:49:38+00:00 app[web.1]: 
2012-04-06T16:49:38+00:00 app[web.1]: cache: [GET /] miss
2012-04-06T16:49:38+00:00 heroku[router]: GET weddoo.heroku.com/ dyno=web.1 queue=0 wait=0ms service=11ms status=500 bytes=728
2012-04-06T16:49:38+00:00 heroku[nginx]: 115.186.162.46 - - [06/Apr/2012:16:49:38 +0000] "GET / HTTP/1.1" 500 728 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.52.7 (KHTML, like Gecko) Version/5.1.2 Safari/534.52.7" weddoo.heroku.com
2012-04-06T16:49:39+00:00 app[web.1]: 
2012-04-06T16:49:39+00:00 app[web.1]: 
2012-04-06T16:49:39+00:00 app[web.1]: Started GET "/" for 115.186.162.46 at 2012-04-06 09:49:39 -0700
2012-04-06T16:49:39+00:00 app[web.1]:   Processing by PostsController#new as HTML
2012-04-06T16:49:39+00:00 app[web.1]: Rendered posts/new.html.erb within layouts/application (1.6ms)
2012-04-06T16:49:39+00:00 app[web.1]: Rendered posts/_form.html.erb (1.4ms)
2012-04-06T16:49:39+00:00 app[web.1]: Completed 500 Internal Server Error in 3ms
2012-04-06T16:49:39+00:00 app[web.1]: 
2012-04-06T16:49:39+00:00 app[web.1]: ActionView::Template::Error (application.css isn't precompiled):
2012-04-06T16:49:39+00:00 app[web.1]:     6:     <title>Weddoo!</title>
2012-04-06T16:49:39+00:00 app[web.1]:     9:     <%= stylesheet_link_tag "application", :media => "all" %>
2012-04-06T16:49:39+00:00 app[web.1]:     10: 
2012-04-06T16:49:39+00:00 app[web.1]:     11:     <link href="images/favicon.ico" rel="shortcut icon">
2012-04-06T16:49:39+00:00 app[web.1]:     7:     <%= csrf_meta_tags %>
2012-04-06T16:49:39+00:00 app[web.1]:     8: 
2012-04-06T16:49:39+00:00 app[web.1]:     12:     <link href="images/apple-touch-icon.png" rel="apple-touch-icon">
2012-04-06T16:49:39+00:00 app[web.1]:   app/views/layouts/application.html.erb:9:in `_app_views_layouts_application_html_erb__819333137240276330_18641900'
2012-04-06T16:49:39+00:00 app[web.1]:   app/controllers/posts_controller.rb:24:in `new'
2012-04-06T16:49:39+00:00 app[web.1]: 
2012-04-06T16:49:39+00:00 app[web.1]: 
2012-04-06T16:49:39+00:00 app[web.1]: cache: [GET /] miss
2012-04-06T16:49:39+00:00 heroku[router]: GET weddoo.heroku.com/ dyno=web.1 queue=0 wait=0ms service=10ms status=500 bytes=728
2012-04-06T16:49:39+00:00 heroku[nginx]: 115.186.162.46 - - [06/Apr/2012:16:49:39 +0000] "GET / HTTP/1.1" 500 728 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.52.7 (KHTML, like Gecko) Version/5.1.2 Safari/534.52.7" weddoo.heroku.com
2012-04-06T16:51:32+00:00 heroku[slugc]: Slug compilation started
2012-04-06T16:51:46+00:00 heroku[api]: Release v8 created by postkhalid@yahoo.com
2012-04-06T16:51:46+00:00 heroku[api]: Deploy db6820d by postkhalid@yahoo.com
2012-04-06T16:51:46+00:00 heroku[web.1]: State changed from up to bouncing
2012-04-06T16:51:46+00:00 heroku[web.1]: State changed from bouncing to created
2012-04-06T16:51:46+00:00 heroku[web.1]: State changed from created to starting
2012-04-06T16:51:47+00:00 heroku[slugc]: Slug compilation finished
2012-04-06T16:51:48+00:00 heroku[web.1]: Stopping process with SIGTERM
2012-04-06T16:51:48+00:00 app[web.1]: >> Stopping ...
2012-04-06T16:51:50+00:00 heroku[web.1]: Process exited with status 0
2012-04-06T16:51:51+00:00 heroku[web.1]: Starting process with command `thin -p 30481 -e production -R /home/heroku_rack/heroku.ru start`
2012-04-06T16:51:55+00:00 app[web.1]: >> Thin web server (v1.2.6 codename Crazy Delicious)
2012-04-06T16:51:55+00:00 app[web.1]: >> Maximum connections set to 1024
2012-04-06T16:51:55+00:00 app[web.1]: >> Listening on 0.0.0.0:30481, CTRL+C to stop
2012-04-06T16:51:56+00:00 heroku[web.1]: State changed from starting to up
2012-04-06T16:51:56+00:00 heroku[rake.1]: State changed from created to starting
2012-04-06T16:52:02+00:00 app[rake.1]: Awaiting client
2012-04-06T16:52:02+00:00 heroku[rake.1]: State changed from starting to up
2012-04-06T16:52:02+00:00 app[rake.1]: Starting process with command `bundle exec rake db:migrate`
2012-04-06T16:52:07+00:00 heroku[rake.1]: Process exited with status 0
2012-04-06T16:52:07+00:00 heroku[rake.1]: State changed from up to complete
2012-04-06T16:52:20+00:00 app[web.1]: 
2012-04-06T16:52:20+00:00 app[web.1]: 
2012-04-06T16:52:20+00:00 app[web.1]: Started GET "/assets/rails.png" for 115.186.162.46 at 2012-04-06 09:52:20 -0700
2012-04-06T16:52:20+00:00 heroku[router]: GET weddoo.heroku.com/assets/rails.png dyno=web.1 queue=0 wait=0ms service=80ms status=404 bytes=728
2012-04-06T16:52:20+00:00 app[web.1]: 
2012-04-06T16:52:20+00:00 app[web.1]: ActionController::RoutingError (No route matches [GET] "/assets/rails.png"):
2012-04-06T16:52:20+00:00 app[web.1]:   
2012-04-06T16:52:20+00:00 app[web.1]: 
2012-04-06T16:52:20+00:00 app[web.1]: 
2012-04-06T16:52:20+00:00 app[web.1]: cache: [GET /assets/rails.png] miss
2012-04-06T16:52:21+00:00 heroku[nginx]: 115.186.162.46 - - [06/Apr/2012:16:52:21 +0000] "GET /assets/rails.png HTTP/1.1" 404 728 "http://weddoo.heroku.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.52.7 (KHTML, like Gecko) Version/5.1.2 Safari/534.52.7" weddoo.heroku.com
2012-04-06T16:52:23+00:00 app[web.1]: 
2012-04-06T16:52:23+00:00 app[web.1]: 
2012-04-06T16:52:23+00:00 app[web.1]: Started GET "/" for 115.186.162.46 at 2012-04-06 09:52:23 -0700
2012-04-06T16:52:23+00:00 app[web.1]:   Processing by PostsController#new as HTML
2012-04-06T16:52:23+00:00 app[web.1]: Rendered posts/_form.html.erb (25.6ms)
2012-04-06T16:52:23+00:00 app[web.1]: Rendered posts/new.html.erb within layouts/application (53.8ms)
2012-04-06T16:52:23+00:00 app[web.1]: ActionView::Template::Error (application.css isn't precompiled):
2012-04-06T16:52:23+00:00 app[web.1]: Completed 500 Internal Server Error in 150ms
2012-04-06T16:52:23+00:00 app[web.1]:     6:     <title>Weddoo!</title>
2012-04-06T16:52:23+00:00 app[web.1]: 
2012-04-06T16:52:23+00:00 app[web.1]:     7:     <%= csrf_meta_tags %>
2012-04-06T16:52:23+00:00 app[web.1]:     8: 
2012-04-06T16:52:23+00:00 app[web.1]:     10: 
2012-04-06T16:52:23+00:00 app[web.1]:     9:     <%= stylesheet_link_tag "application", :media => "all" %>
2012-04-06T16:52:23+00:00 app[web.1]:     11:     <link href="images/favicon.ico" rel="shortcut icon">
2012-04-06T16:52:23+00:00 heroku[router]: GET weddoo.heroku.com/ dyno=web.1 queue=0 wait=0ms service=206ms status=500 bytes=728
2012-04-06T16:52:23+00:00 app[web.1]:     12:     <link href="images/apple-touch-icon.png" rel="apple-touch-icon">
2012-04-06T16:52:23+00:00 app[web.1]:   app/views/layouts/application.html.erb:9:in `_app_views_layouts_application_html_erb___37461260917978840_28780360'
2012-04-06T16:52:23+00:00 app[web.1]:   app/controllers/posts_controller.rb:24:in `new'
2012-04-06T16:52:23+00:00 app[web.1]: 
2012-04-06T16:52:23+00:00 app[web.1]: 
2012-04-06T16:52:23+00:00 app[web.1]: cache: [GET /] miss
2012-04-06T16:52:24+00:00 heroku[nginx]: 115.186.162.46 - - [06/Apr/2012:16:52:24 +0000] "GET / HTTP/1.1" 500 728 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.52.7 (KHTML, like Gecko) Version/5.1.2 Safari/534.52.7" weddoo.heroku.com


GEMFILE

source 'http://rubygems.org'

gem 'rails', '3.1.1'

# Bundle edge Rails instead:
# gem 'rails',     :git => 'git://github.com/rails/rails.git'

gem 'sqlite3'
gem 'pg'
gem 'json'
gem "twitter-bootstrap-rails", "~> 2.0.1.0"

# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails',   '~> 3.1.4'
gem 'coffee-rails', '~> 3.1.1'
gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'

# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# Use unicorn as the web server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'ruby-debug'

RAKEFILE

#!/usr/bin/env rake
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

require File.expand_path('../config/application', __FILE__)

Mysalary::Application.load_tasks

HEROKU INFO

=== weddoo
Addons:        Shared Database 5MB
Database Size: 64k
Dynos:         1
Git URL:       git@heroku.com:weddoo.git
Owner:         postkhalid@yahoo.com
Repo Size:     11M
Slug Size:     11M
Stack:         bamboo-mri-1.9.2
Web URL:       http://weddoo.heroku.com/
Workers:       0

解决方案

So based upon the heroku info that you provided I see that you are on the bamboo stack and that stack does not support Rails 3.1+. Only the cedar stack supports Rails 3.1+. You'll need to use the following command to create a new app on the cedar stack:

heroku create --stack cedar

这篇关于当我尝试将我的应用程序推到Heroku上时发生500内部服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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