Heroku“我们很抱歉,但出了点问题”但在localhost中工作正常

时间:2013-06-26 16:44:03

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

我正在使用Postgresql数据库和一些宝石在Rails上构建一个Web应用程序。

该应用程序在localhost上正常工作。

但我将它部署到Heroku,这就是问题的开始。当我打开网站时,“我们很抱歉,但出现了问题”显示错误。

我不明白我做错了什么,我一步一步地遵循Heroku文档。

2013-06-26T16:34:02.658743+00:00 heroku[api]: Enable Logplex by ssjn1@gmail.com
2013-06-26T16:34:02.672706+00:00 heroku[api]: Release v2 created by ssjn1@gmail.com
2013-06-26T16:34:23+00:00 heroku[slug-compiler]: Slug compilation started
2013-06-26T16:34:27.709554+00:00 heroku[router]: at=info code= desc="Blank app" method=GET path=/ host=anations.herokuapp.com fwd="68.45.84.42" dyno= connect= service= status=502 bytes=
2013-06-26T16:35:35.084888+00:00 heroku[router]: at=info code= desc="Blank app" method=GET path=/ host=anations.herokuapp.com fwd="68.45.84.42" dyno= connect= service= status=502 bytes=
2013-06-26T16:35:44.786344+00:00 heroku[router]: at=info code= desc="Blank app" method=GET path=/ host=anations.herokuapp.com fwd="68.45.84.42" dyno= connect= service= status=502 bytes=
2013-06-26T16:36:28.661657+00:00 heroku[router]: at=info code= desc="Blank app" method=GET path=/ host=anations.herokuapp.com fwd="68.45.84.42" dyno= connect= service= status=502 bytes=
2013-06-26T16:36:29.460447+00:00 heroku[router]: at=info code= desc="Blank app" method=GET path=/ host=anations.herokuapp.com fwd="68.45.84.42" dyno= connect= service= status=502 bytes=
2013-06-26T16:36:35.353682+00:00 heroku[api]: Scale to web=1 by efe.tuncel@gmail.com
2013-06-26T16:36:35.994921+00:00 heroku[api]: Attach HEROKU_POSTGRESQL_RED resource by efe.tuncel@gmail.com
2013-06-26T16:36:36.039480+00:00 heroku[api]: Release v3 created by efe.tuncel@gmail.com
2013-06-26T16:36:36.125033+00:00 heroku[api]: Add DATABASE_URL config by efe.tuncel@gmail.com
2013-06-26T16:36:36.168015+00:00 heroku[api]: Release v4 created by efe.tuncel@gmail.com
2013-06-26T16:36:36.222630+00:00 heroku[api]: Deploy acb3973 by efe.tuncel@gmail.com
2013-06-26T16:36:36.247364+00:00 heroku[api]: Release v5 created by efe.tuncel@gmail.com
2013-06-26T16:36:36.287931+00:00 heroku[api]: Deploy acb3973 by efe.tuncel@gmail.com
2013-06-26T16:36:36+00:00 heroku[slug-compiler]: Slug compilation finished
2013-06-26T16:36:40.669432+00:00 heroku[web.1]: Starting process with command `bundle exec unicorn -p 16661 -E $RACK_ENV`
2013-06-26T16:36:42.492242+00:00 app[web.1]: I, [2013-06-26T16:36:42.491809 #2]  INFO -- : listening on addr=0.0.0.0:16661 fd=9
2013-06-26T16:36:42.492388+00:00 app[web.1]: I, [2013-06-26T16:36:42.492304 #2]  INFO -- : worker=0 spawning...
2013-06-26T16:36:42.510234+00:00 app[web.1]: I, [2013-06-26T16:36:42.510103 #2]  INFO -- : master process ready
2013-06-26T16:36:42.509016+00:00 app[web.1]: I, [2013-06-26T16:36:42.507458 #5]  INFO -- : worker=0 spawned pid=5
2013-06-26T16:36:42.509205+00:00 app[web.1]: I, [2013-06-26T16:36:42.509116 #5]  INFO -- : Refreshing Gem list
2013-06-26T16:36:47.676752+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2013-06-26T16:36:48.704589+00:00 app[web.1]: I, [2013-06-26T16:36:48.704410 #2]  INFO -- : reaped #<Process::Status: pid 5 exit 0> worker=0
2013-06-26T16:36:48.710176+00:00 app[web.1]: I, [2013-06-26T16:36:48.705477 #2]  INFO -- : master complete
2013-06-26T16:36:48.625073+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path=/ host=anations.herokuapp.com fwd="68.45.84.42" dyno=web.1 connect=1ms service=5032ms status=503 bytes=0
2013-06-26T16:36:50.560431+00:00 heroku[web.1]: Process exited with status 0
2013-06-26T16:37:22.165947+00:00 heroku[web.1]: Starting process with command `bundle exec unicorn -p 35653 -E $RACK_ENV`
2013-06-26T16:37:30.397381+00:00 app[web.1]: I, [2013-06-26T16:37:30.396972 #2]  INFO -- : listening on addr=0.0.0.0:35653 fd=9
2013-06-26T16:37:30.397381+00:00 app[web.1]: I, [2013-06-26T16:37:30.397136 #2]  INFO -- : worker=0 spawning...
2013-06-26T16:37:30.406633+00:00 app[web.1]: I, [2013-06-26T16:37:30.406363 #2]  INFO -- : master process ready
2013-06-26T16:37:30.407047+00:00 app[web.1]: I, [2013-06-26T16:37:30.406748 #5]  INFO -- : worker=0 spawned pid=5
2013-06-26T16:37:30.407491+00:00 app[web.1]: I, [2013-06-26T16:37:30.407139 #5]  INFO -- : Refreshing Gem list
2013-06-26T16:37:30.560620+00:00 heroku[web.1]: State changed from starting to up
2013-06-26T16:37:32.747269+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)
2013-06-26T16:37:32.747918+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)
2013-06-26T16:37:32.748466+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)
2013-06-26T16:37:36.273209+00:00 app[web.1]: I, [2013-06-26T16:37:36.273017 #5]  INFO -- : worker=0 ready
2013-06-26T16:37:48.244468+00:00 app[web.1]: Started GET "/" for 68.45.84.42 at 2013-06-26 16:37:46 +0000
2013-06-26T16:37:49.441352+00:00 app[web.1]: ActionView::Template::Error (Invalid CSS after "...abel { font-s  ": expected "{", was "}"
2013-06-26T16:37:49.441352+00:00 app[web.1]:     11:   <meta name="Copyright" content="" />
2013-06-26T16:37:49.441352+00:00 app[web.1]:   (in /app/app/assets/stylesheets/application.css)):
2013-06-26T16:37:49.441352+00:00 app[web.1]:   app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb__4588489898459421898_70331387329300'
2013-06-26T16:37:49.441352+00:00 app[web.1]:     13:   <%= javascript_include_tag "application" %>
2013-06-26T16:37:49.441352+00:00 app[web.1]:     9:   <meta name="description" content="fatihnetwork.com | fatih universitesi ogrencileri bulusma platformu" />
2013-06-26T16:37:49.441352+00:00 app[web.1]:     10:   <meta name="keywords" content="fatih universitesi, fatih, fatih ¸niversitesi ¸niversite, foursquare t¸rkiye, foursquare, four square, facebook, facebook t¸rkiye" />
2013-06-26T16:37:49.441352+00:00 app[web.1]:     12:   <%= stylesheet_link_tag    "application", :media => "all" %>
2013-06-26T16:37:49.441352+00:00 app[web.1]:     15: </head>
2013-06-26T16:37:49.441629+00:00 app[web.1]: 
2013-06-26T16:37:49.441629+00:00 app[web.1]: 
2013-06-26T16:37:49.440727+00:00 app[web.1]: 
2013-06-26T16:37:49.441352+00:00 app[web.1]:     14:   <%= csrf_meta_tags %>
2013-06-26T16:37:49.477790+00:00 heroku[router]: at=info method=GET path=/ host=anations.herokuapp.com fwd="68.45.84.42" dyno=web.1 connect=4ms service=9203ms status=500 bytes=643

修改 在布鲁诺建议{@ 1}}尝试在开发环境中编译它之后,我收到了以下错误。

/Users/atet/.rvm/rubies/ruby-2.0.0-p195/bin/ruby /Users/atet/.rvm/gems/ruby-2.0.0-p195@global/bin/rake assets:precompile :所有RAILS_ENV =生产RAILS_GROUPS =资产 耙子流产了! “... abel {font-s”:expected“{”,was“}”之后的CSS无效   (在/Users/atet/Code/anations/app/assets/stylesheets/application.css中) (SASS):126

0 个答案:

没有答案