本文介绍了推向Heroku时:应用程序发生错误,您的页面无法送达。请稍后重试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直坚持这几个小时,似乎无法得到它的工作。



我正在跟随一个教程,我试图



我的gemfile如下所示:

  source'https://rubygems.org'
ruby​​'2.0.0'

#Bundle edge Rails改为:gem'rails',github:'rails / rails'
gem'rails','4.1.1'


#在生产环境中默认情况下,宝石仅用于资产并且不需要
#。
group:assets do
#在样式表中使用SCSS
gem'sass-rails','〜> 4.0.3'
gem'coffee-rails'
gem'uglifier','1.2.3'
end

#使用jQuery作为JavaScript库
gem'jquery-rails'

group:development,:test do
gem'sqlite3'
gem'rspec-rails','2.10.0'
结束

组:生产do
gem'pg'
结束

当我推送到Heroku时,我得到这个:

$ p $ Lisa:sample_app admin-lisa $ git push heroku掌握
初始化仓库,完成。
计数对象:81,完成。
使用多达2个线程的增量压缩。
压缩对象:100%(68/68),完成。
写作对象:100%(81/81),17.36 KiB,完成。
总计81(增量12),重用0(增量0)

-----> Ruby应用检测到
----->编译Ruby / Rails
----->使用Ruby版本:ruby-2.0.0
----->使用1.6.3
安装依赖项运行:bundle install --without development:test --path vendor / bundle --binstubs vendor / bundle / bin -j4 --deployment
从https获取gem元数据:/ /rubygems.org/ ..........
从https://rubygems.org/获取额外元数据..
安装i18n 0.6.9
安装rake 10.3。 2
安装minitest 5.3.5
安装thread_safe 0.3.4
安装生成器3.2.2
安装rack 1.5.2
安装erubis 2.7.0
安装polyglot 0.3.5
安装mime-types 1.25.1
安装coffee-script-source 1.7.0
安装arel 5.0.1.20140414130214
安装execjs 2.2.1
安装hike 1.2.3
安装thor 0.19.1
安装multi_json 1.10.1
使用bundler 1.6.3
安装json 1.8.1
安装tilt 1.4。 1
In停止tzinfo 1.2.1
安装sass 3.2.19
安装rack-test 0.6.2
安装coffee-script 2.2.0
安装treetop 1.4.15
安装uglifier 1.2.3
安装链轮2.11.0
安装activesupport 4.1.1
安装邮件2.5.4
安装actionview 4.1.1
安装activemodel 4.1.1
安装actionpack 4.1.1
安装activerecord 4.1.1
安装actionmailer 4.1.1
安装sprockets-rails 2.1.3
安装railties 4.1.1
安装jquery-rails 3.1.1
安装coffee-rails 4.0.1
安装sass-rails 4.0.3
安装rails 4.1.1
安装pg 0.17.1
您的包裹已完成!
没有安装群组开发和测试中的宝石。
它被安装到./vendor/bundle
Bundle完成(27.18s)
清理Bundler缓存。
----->为Rails资产管道准备应用程序
运行:rake资产:预编译
rake中止!
Sprockets :: FileNotFound:找不到文件'turbolinks'
(在/tmp/build_868a3914-b83c-496d-b715-75262204c9cf/app/assets/javascripts/application.js:15)
/tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/context.rb:106:in`resolve'
/tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/context.rb:146:in`require_asset'
$ / $ / $ / $ / tmp / build_868a3914-b83c-496d-b715-75262204c9cf / vendor / bundle / ruby​​ / 2.0.0 / gems / sprockets-2.11.0 / lib / sprockets / directive_processor.rb:167:在`block in process_directives'
/tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/directive_processor.rb:165 :in`each'
/tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/directive_processor.rb:165: in`process_directives'
/tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/directive_processor.rb:99:in `评估'
/tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in`渲染'
/tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/context.rb:197:in`block在评估'
/tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/context.rb:194:in`每个'
/tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/context.rb:194:in`评估'
/ tmp / build_868a3914-b83c-496d-b715-75 262204c9cf / vendor / bundle / ruby​​ / 2.0.0 / gems / sprockets-2.11.0 / lib / sprockets / processed_asset.rb:12:in`initialize'
/tmp/build_868a3914-b83c-496d-b715-75262204c9cf /vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:374:in`new'
/ tmp / build_868a3914-b83c-496d-b715-75262204c9cf / vendor / bundle / ruby​​ / 2.0.0 / gems / sprockets-2.11.0 / lib / sprockets / base.rb:374:in`block in build_asset'
/ tmp / build_868a3914-b83c-496d-b715-75262204c9cf在/ circular / call / vendor / bundle / ruby​​ / 2.0.0 / gems / sprockets-2.11.0 / lib / sprockets / base.rb:373:in`build_asset'
/ tmp / build_868a3914-b83c-496d-b715-75262204c9cf / vendor /bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/index.rb:94:in`block in build_asset'
/ tmp / build_868a3914-b83c-496d-b715-75262204c9cf /供应商/束/红宝石/ 2.0.0 /宝石/链轮-2.11。 0 / lib / sprockets / caching.rb:58:`cache_asset'
/tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0 /lib/sprockets/index.rb:93:in`build_asset'
/tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/ lib / sprockets / base.rb:287:在`find_asset'
/tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib [/ b] sprockets / bundled_asset.rb:16:`initialize'
/tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets /base.rb:377:in`new'
/tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/ base.rb:377:在`build_asset'
/ tmp / build_868a3914-b83c-496d- b715-75262204c9cf / vendor / bundle / ruby​​ / 2.0.0 / gems / sprockets-2.11.0 / lib / sprockets / index.rb:94:在`block in build_asset'
/ tmp / build_868a3914-b83c-496d -b715-75262204c9cf / vendor / bundle / ruby​​ / 2.0.0 / gems / sprockets-2.11.0 / lib / sprockets / caching.rb:58:in`cache_asset'
/ tmp / build_868a3914-b83c-496d- b715-75262204c9cf / vendor / bundle / ruby​​ / 2.0.0 / gems / sprockets-2.11.0 / lib / sprockets / index.rb:93:在`build_asset'
/ tmp / build_868a3914-b83c-496d-b715 -75262204c9cf / vendor / bundle / ruby​​ / 2.0.0 / gems / sprockets-2.11.0 / lib / sprockets / base.rb:287:in`find_asset'
/ tmp / build_868a3914-b83c-496d-b715- 75262204c9cf / vendor / bundle / ruby​​ / 2.0.0 / gems / sprockets-2.11.0 / lib / sprockets / index.rb:61:在`find_asset'
/ tmp / build_868a3914-b83c-496d-b715-75262204c9cf /vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:211:in`block in find_asset'
/ tmp / build_868a3914-b83c-496d-b715- 75262204c9cf /供应商/束/红宝石/ 2.0.0 /宝石/链轮-2.11.0 /立b / sprockets / manifest.rb:257:在`benchmark'中
/tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib /sprockets/manifest.rb:210:in`find_asset'
/tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/ sprockets / manifest.rb:119:在`block in compile'中
/tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib /sprockets/manifest.rb:118:in`each'
/tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/ sprockets / manifest.rb:118:在`compile'中
/tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.1.3/lib /sprockets/rails/task.rb:61:in`block(3 levels)in define'
/tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/链轮2.11.0 / lib / rake / sprocketstask.rb:146:在`with_logger'
/tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.1.3/lib/sprockets/rails/task.rb:60:in`block(2水平)定义'
任务:TOP =>资产:预编译
(通过使用--trace运行任务查看完整跟踪)

!预编译资产失败。


!推送被拒绝,未能编译Ruby应用程序

[email protected]:polar-wave-2691.git
! [remote rejected] master - > master(pre-receive hook refused)
错误:未能将一些文件推送到'[email protected]:polar-wave-2691.git'

当我访问Heroku站点时,它说:应用程序错误
应用程序发生错误,您的页面无法投放。请稍后再试。



如果您是应用程序所有者,请查看您的日志以获取详细信息。



所以我检查了我的日志,其中说:

  Lisa:sample_app admin-lisa $ heroku日志
2014-06 -27T00:07:21.685434 + 00:00 heroku [api]:启用Logplex by [email protected]
2014-06-27T00:07:21.685490 + 00:00 heroku [api]:发布v2创建by [email protected]
2014-06-27T00:07:29 + 00:00 heroku [slug-compiler]:弹头编译开始
2014-06-27T00:07:33 + 00 :00 heroku [slug-compiler]:Slug编译失败:无法编译Ruby应用
2014-06-27T00:07:40.377399 + 00:00 heroku [router]:at = error code = H14 desc =No web进程正在运行method = GET path =/host = polar-wave-2691.herokuapp.com request_id = 5b29dca1-29e3-4410-8efb-99c74f1b14ec fwd =50.143.161.142dyno = connect = service = status = 503字节=
2014-06-27T00:07:40.673553 + 00:00 heroku [router]:at = error code = H14 desc =没有web进程运行method = GET path = /favicon.icohost = polar-wave-2691.herokuapp.com request_id = 39df86cb-8d9c-418f-afb9-8242fc5f311e fwd =50.143.161.142dyno = connect = service = status = 503 bytes =
2014 -06-27T00:08:03.130094 + 00:00 heroku [api]:用命令`rake db:migrate`启动程序[email protected]
2014-06-27T00:08:04.869272 + 00 :00 heroku [run.1405]:状态从开始变为上升
2014-06-27T00:08:06.629224 + 00:00 heroku [run.1405]:状态从最高改为完成
2014 -06-27T00:08:04.809756 + 00:00 heroku [run.1405]:用命令`rake db:migrate`启动进程
2014-06-27T00:08:06.612075 + 00:00 heroku [run。 1405]:进程退出状态1
2014-06-27T00:08:04.774227 + 00:00 heroku [run.1405]:等待客户
2014-06-27T00:08:10.068439 + 00: 00 heroku [router]:at = error code = H14 desc =没有web进程运行method = GET path =/host = polar-wave-2691.herokuapp.com request_id = a6c649ff-2b4b-4a67-9bfa-c2e06b623c8a fwd =50.143.161.142dyno = connect = service = status = 503 bytes =
2014-06-27T00:08:10.354925 + 00:00 heroku [router]:at = error code = H14 desc =没有web进程运行method = GET path =/ favicon.icohost = polar-wave- 2691.herokuapp.com request_id = 60a03227-4cfa-4ba3-b2e5-f84b63b0db07 fwd =50.143.161.142dyno = connect = service = status = 503 bytes =
2014-06-27T00:08:13.488700 + 00: 00 heroku [router]:at = error code = H14 desc =没有web进程运行method = GET path =/host = polar-wave-2691.herokuapp.com request_id = 21eb1930-2b7e-4e57-b0df-3fffaeffae29 fwd =50.143.161.142dyno = connect = service = status = 503 bytes =
2014-06-27T00:08:13.851121 + 00:00 heroku [router]:at = error code = H14 desc =No web进程正在运行method = GET path =/ favicon.icohost = polar-wave-2691.herokuapp.com request_id = 9b015c1f-e710-4866 -acba-0f215ea5938d fwd =50.143.161.142dyno = connect = service =状态= 503字节=
2014-06-27T00:08:40.685450 + 00:00 heroku [run.2450]:等待客户
2014-06-27T00:08:40.746839 + 00:00 heroku [运行.2450]:用命令`rake db:migr启动进程ate`
2014-06-27T00:08:39.220494 + 00:00 heroku [api]:用命令`rake db:migrate`启动进程[email protected]
2014-06- 27T00:08:40.730443 + 00:00 heroku [run.2450]:状态从开始改为
2014-06-27T00:08:42.454908 + 00:00 heroku [run.2450]:状态从up完成
2014-06-27T00:08:42.363758 + 00:00 heroku [run.2450]:进程退出状态1
2014-06-27T00:08:55.126228
+00 :00 heroku [router]:at = error code = H14 desc =没有web进程运行method = GET path =/host = polar-wave-2691.herokuapp.com request_id = 5f1ec80d-7dc1-4810-91a1- 1f61b7f1dc66 fwd =50.143.161.142dyno = connect = service = status = 503 bytes =
2014-06-27T00:08:55.685930 + 00:00 heroku [router]:at = error code = H14 desc =没有web进程正在运行method = GET path =/ favicon.icohost = polar-wave-2691.herokuapp.com request_id = 03a9fa47-7148-4a12-b7ec-ffe2100f4161 fwd =50.143.161.142dyno = connect = service = status = 503字节=
2014-06-27T00:16:47.224352 + 00:00 heroku [rou ter]:at = error code = H14 desc =没有web进程运行method = GET path =/host = polar-wave-2691.herokuapp.com request_id = fccc625d-9bd2-4d2b-8d95-a51fe4d210eb fwd = 50.143.161.142dyno = connect = service = status = 503 bytes =
2014-06-27T00:16:47.589404 + 00:00 heroku [router]:at = error code = H14 desc =没有web进程运行method = GET path =/ favicon.icohost = polar-wave-2691.herokuapp.com request_id = 336a9fd4-47c7-4342-a7c2-3815eb0b84d3 fwd =50.143.161.142dyno = connect = service = status = 503字节=
2014-06-27T00:17:01 + 00:00 heroku [slug-compiler]:弹头编译开始
2014-06-27T00:17:05 + 00:00 heroku [slug-编译]:Slug编译失败:未能编译Ruby应用
2014-06-27T00:18:13 + 00:00 heroku [slug-compiler]:Slug编译开始
2014-06-27T00:19 :08 + 00:00 heroku [slug-compiler]:Slug编译失败:未能编译Ruby应用
2014-06-27T00:20:16 + 00:00 heroku [slug-compiler]:Slug编译开始
2014-06-27T00:21:03 + 00:00 heroku [slug-compi ler]:Slug编译失败:无法编译Ruby应用
2014-06-27T00:22:11 + 00:00 heroku [slug-compiler]:Slug编译开始
2014-06-27T00:22 :39 + 00:00 heroku [slug-compiler]:Slug编译失败:未能编译Ruby应用
2014-06-27T00:23:31 + 00:00 heroku [slug-compiler]:Slug编译开始
2014-06-27T00:23:56 + 00:00 heroku [slug-compiler]:Slug编译失败:无法编译Ruby应用
2014-06-27T00:24:37 + 00:00 heroku [slug-compiler]:Slug编译开始
2014-06-27T00:25:06 + 00:00 heroku [slug-compiler]:Slug编译失败:未能编译Ruby应用程序
2014-06- 27T00:26:09 + 00:00 heroku [slug-compiler]:Slug编译开始
2014-06-27T00:26:37 + 00:00 heroku [slug-compiler]:Slug编译失败:编译失败Ruby app app
2014-06-27T00:39:14 + 00:00 heroku [slug-compiler]:弹头编译开始
2014-06-27T00:39:51 + 00:00 heroku [slug-编译器]:Slug编译失败:无法编译Ruby应用程序

我不明白它究竟是什么意思,但我试图运行

  rake资产:预编译

也是

  heroku run rake db:migrate 

I还检查了我的git状态,并且一切都已经完成。



我尝试删除我的gemfile.lock并再次运行捆绑软件,并使用rake db:迁移并全部提交,但没有运气。



我只是学习Rails,而heroku日志对我来说并不完全合理。



谢谢。

解决方案

你的application.js文件是什么样子的?如果你使用turbolinks摆脱它。 Rails可能会试图为你预编译你的资产并缩小它们,但这可能会让你失望。另外请查看,您可能需要安装此gem。

I've been stuck on this for a few hours and can't seem to get it working.

I am following a tutorial and I'm trying to push my app to Heroku.

My gemfile looks like:

source 'https://rubygems.org'
ruby '2.0.0'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.1'


# Gems used only for assets and not required
# in production environments by default.
group :assets do
# Use SCSS for stylesheets
 gem 'sass-rails', '~> 4.0.3'
 gem 'coffee-rails'
 gem 'uglifier', '1.2.3'
end

# Use jquery as the JavaScript library
gem 'jquery-rails'

group :development, :test do
 gem 'sqlite3'
 gem 'rspec-rails', '2.10.0'
end

group :production do
 gem 'pg'
end

When I push to Heroku, I get this:

    Lisa:sample_app admin-lisa$ git push heroku master
Initializing repository, done.
Counting objects: 81, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (68/68), done.
Writing objects: 100% (81/81), 17.36 KiB, done.
Total 81 (delta 12), reused 0 (delta 0)

-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using 1.6.3
       Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
       Fetching gem metadata from https://rubygems.org/..........
       Fetching additional metadata from https://rubygems.org/..
       Installing i18n 0.6.9
       Installing rake 10.3.2
       Installing minitest 5.3.5
       Installing thread_safe 0.3.4
       Installing builder 3.2.2
       Installing rack 1.5.2
       Installing erubis 2.7.0
       Installing polyglot 0.3.5
       Installing mime-types 1.25.1
       Installing coffee-script-source 1.7.0
       Installing arel 5.0.1.20140414130214
       Installing execjs 2.2.1
       Installing hike 1.2.3
       Installing thor 0.19.1
       Installing multi_json 1.10.1
       Using bundler 1.6.3
       Installing json 1.8.1
       Installing tilt 1.4.1
       Installing tzinfo 1.2.1
       Installing sass 3.2.19
       Installing rack-test 0.6.2
       Installing coffee-script 2.2.0
       Installing treetop 1.4.15
       Installing uglifier 1.2.3
       Installing sprockets 2.11.0
       Installing activesupport 4.1.1
       Installing mail 2.5.4
       Installing actionview 4.1.1
       Installing activemodel 4.1.1
       Installing actionpack 4.1.1
       Installing activerecord 4.1.1
       Installing actionmailer 4.1.1
       Installing sprockets-rails 2.1.3
       Installing railties 4.1.1
       Installing jquery-rails 3.1.1
       Installing coffee-rails 4.0.1
       Installing sass-rails 4.0.3
       Installing rails 4.1.1
       Installing pg 0.17.1
       Your bundle is complete!
       Gems in the groups development and test were not installed.
       It was installed into ./vendor/bundle
       Bundle completed (27.18s)
       Cleaning up the bundler cache.
-----> Preparing app for Rails asset pipeline
       Running: rake assets:precompile
       rake aborted!
       Sprockets::FileNotFound: couldn't find file 'turbolinks'
       (in /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/app/assets/javascripts/application.js:15)
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/context.rb:106:in `resolve'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/context.rb:146:in `require_asset'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/directive_processor.rb:217:in `process_require_directive'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/directive_processor.rb:167:in `block in process_directives'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/directive_processor.rb:165:in `each'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/directive_processor.rb:165:in `process_directives'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/directive_processor.rb:99:in `evaluate'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/context.rb:197:in `block in evaluate'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/context.rb:194:in `each'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/context.rb:194:in `evaluate'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/processed_asset.rb:12:in `initialize'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:374:in `new'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:374:in `block in build_asset'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:395:in `circular_call_protection'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:373:in `build_asset'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/index.rb:94:in `block in build_asset'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/caching.rb:58:in `cache_asset'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/index.rb:93:in `build_asset'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:287:in `find_asset'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/index.rb:61:in `find_asset'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/bundled_asset.rb:16:in `initialize'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:377:in `new'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:377:in `build_asset'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/index.rb:94:in `block in build_asset'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/caching.rb:58:in `cache_asset'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/index.rb:93:in `build_asset'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:287:in `find_asset'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/index.rb:61:in `find_asset'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:211:in `block in find_asset'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:257:in `benchmark'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:210:in `find_asset'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:119:in `block in compile'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:118:in `each'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:118:in `compile'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.1.3/lib/sprockets/rails/task.rb:61:in `block (3 levels) in define'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/rake/sprocketstask.rb:146:in `with_logger'
       /tmp/build_868a3914-b83c-496d-b715-75262204c9cf/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.1.3/lib/sprockets/rails/task.rb:60:in `block (2 levels) in define'
       Tasks: TOP => assets:precompile
       (See full trace by running task with --trace)
 !
 !     Precompiling assets failed.
 !

 !     Push rejected, failed to compile Ruby app

To [email protected]:polar-wave-2691.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:polar-wave-2691.git'

And when I visit the Heroku site, it says: Application ErrorAn error occurred in the application and your page could not be served. Please try again in a few moments.

If you are the application owner, check your logs for details.

So I checked my logs, which say:

Lisa:sample_app admin-lisa$ heroku logs
2014-06-27T00:07:21.685434+00:00 heroku[api]: Enable Logplex by [email protected]
2014-06-27T00:07:21.685490+00:00 heroku[api]: Release v2 created by [email protected]
2014-06-27T00:07:29+00:00 heroku[slug-compiler]: Slug compilation started
2014-06-27T00:07:33+00:00 heroku[slug-compiler]: Slug compilation failed: failed to compile Ruby app
2014-06-27T00:07:40.377399+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=polar-wave-2691.herokuapp.com request_id=5b29dca1-29e3-4410-8efb-99c74f1b14ec fwd="50.143.161.142" dyno= connect= service= status=503 bytes=
2014-06-27T00:07:40.673553+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=polar-wave-2691.herokuapp.com request_id=39df86cb-8d9c-418f-afb9-8242fc5f311e fwd="50.143.161.142" dyno= connect= service= status=503 bytes=
2014-06-27T00:08:03.130094+00:00 heroku[api]: Starting process with command `rake db:migrate` by [email protected]
2014-06-27T00:08:04.869272+00:00 heroku[run.1405]: State changed from starting to up
2014-06-27T00:08:06.629224+00:00 heroku[run.1405]: State changed from up to complete
2014-06-27T00:08:04.809756+00:00 heroku[run.1405]: Starting process with command `rake db:migrate`
2014-06-27T00:08:06.612075+00:00 heroku[run.1405]: Process exited with status 1
2014-06-27T00:08:04.774227+00:00 heroku[run.1405]: Awaiting client
2014-06-27T00:08:10.068439+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=polar-wave-2691.herokuapp.com request_id=a6c649ff-2b4b-4a67-9bfa-c2e06b623c8a fwd="50.143.161.142" dyno= connect= service= status=503 bytes=
2014-06-27T00:08:10.354925+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=polar-wave-2691.herokuapp.com request_id=60a03227-4cfa-4ba3-b2e5-f84b63b0db07 fwd="50.143.161.142" dyno= connect= service= status=503 bytes=
2014-06-27T00:08:13.488700+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=polar-wave-2691.herokuapp.com request_id=21eb1930-2b7e-4e57-b0df-3fffaeffae29 fwd="50.143.161.142" dyno= connect= service= status=503 bytes=
2014-06-27T00:08:13.851121+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=polar-wave-2691.herokuapp.com request_id=9b015c1f-e710-4866-acba-0f215ea5938d fwd="50.143.161.142" dyno= connect= service= status=503 bytes=
2014-06-27T00:08:40.685450+00:00 heroku[run.2450]: Awaiting client
2014-06-27T00:08:40.746839+00:00 heroku[run.2450]: Starting process with command `rake db:migrate`
2014-06-27T00:08:39.220494+00:00 heroku[api]: Starting process with command `rake db:migrate` by [email protected]
2014-06-27T00:08:40.730443+00:00 heroku[run.2450]: State changed from starting to up
2014-06-27T00:08:42.454908+00:00 heroku[run.2450]: State changed from up to complete
2014-06-27T00:08:42.363758+00:00 heroku[run.2450]: Process exited with status 1
2014-06-27T00:08:55.126228
+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=polar-wave-2691.herokuapp.com request_id=5f1ec80d-7dc1-4810-91a1-1f61b7f1dc66 fwd="50.143.161.142" dyno= connect= service= status=503 bytes=
2014-06-27T00:08:55.685930+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=polar-wave-2691.herokuapp.com request_id=03a9fa47-7148-4a12-b7ec-ffe2100f4161 fwd="50.143.161.142" dyno= connect= service= status=503 bytes=
2014-06-27T00:16:47.224352+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=polar-wave-2691.herokuapp.com request_id=fccc625d-9bd2-4d2b-8d95-a51fe4d210eb fwd="50.143.161.142" dyno= connect= service= status=503 bytes=
2014-06-27T00:16:47.589404+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=polar-wave-2691.herokuapp.com request_id=336a9fd4-47c7-4342-a7c2-3815eb0b84d3 fwd="50.143.161.142" dyno= connect= service= status=503 bytes=
2014-06-27T00:17:01+00:00 heroku[slug-compiler]: Slug compilation started
2014-06-27T00:17:05+00:00 heroku[slug-compiler]: Slug compilation failed: failed to compile Ruby app
2014-06-27T00:18:13+00:00 heroku[slug-compiler]: Slug compilation started
2014-06-27T00:19:08+00:00 heroku[slug-compiler]: Slug compilation failed: failed to compile Ruby app
2014-06-27T00:20:16+00:00 heroku[slug-compiler]: Slug compilation started
2014-06-27T00:21:03+00:00 heroku[slug-compiler]: Slug compilation failed: failed to compile Ruby app
2014-06-27T00:22:11+00:00 heroku[slug-compiler]: Slug compilation started
2014-06-27T00:22:39+00:00 heroku[slug-compiler]: Slug compilation failed: failed to compile Ruby app
2014-06-27T00:23:31+00:00 heroku[slug-compiler]: Slug compilation started
2014-06-27T00:23:56+00:00 heroku[slug-compiler]: Slug compilation failed: failed to compile Ruby app
2014-06-27T00:24:37+00:00 heroku[slug-compiler]: Slug compilation started
2014-06-27T00:25:06+00:00 heroku[slug-compiler]: Slug compilation failed: failed to compile Ruby app
2014-06-27T00:26:09+00:00 heroku[slug-compiler]: Slug compilation started
2014-06-27T00:26:37+00:00 heroku[slug-compiler]: Slug compilation failed: failed to compile Ruby app
2014-06-27T00:39:14+00:00 heroku[slug-compiler]: Slug compilation started
2014-06-27T00:39:51+00:00 heroku[slug-compiler]: Slug compilation failed: failed to compile Ruby app

I don't understand what it's trying to tell me, exactly, but I tried to run

rake assets:precompile

also

heroku run rake db:migrate

I also checked my git status and everything has been committed.

I tried deleting my gemfile.lock and running bundle again and rake db:migrate and committing it all over, but no luck.

I'm just learning Rails and the heroku log isn't totally making sense to me.

Thank you.

解决方案

What does your application.js file look like? If you are using turbolinks get rid of it. Rails may be trying to precompile your assets for you and minify them, but that may be tripping you up. Also check out https://github.com/heroku/rails_12factor, you may want to install this gem.

这篇关于推向Heroku时:应用程序发生错误,您的页面无法送达。请稍后重试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-12 13:44