heroku Push拒绝找不到错误

时间:2017-12-13 20:59:13

标签: ruby-on-rails heroku

我正在使用rails并刚刚完成。本地工作一切都很完美,但推到Heroku是行不通的。我到处搜索,但我真的不了解Heroku日志文件。 我修正了一些错误,但它仍然没有用。纱线下载后,这个耙子中止了!

remote:        Yarn executable was not detected in the system.
remote:        Download Yarn at https://yarnpkg.com/en/docs/install
remote:        I, [2017-12-13T20:24:49.127264 #1613]  INFO -- : Writing /tmp/build_c0948d29239961f8305c09dc5523c4b6/public/assets/background-55c706ba724665dd45dd39541947c50a9859524d07ed7fc00b66fd78a99676ea.jpg
remote:        I, [2017-12-13T20:24:49.129988 #1613]  INFO -- : Writing /tmp/build_c0948d29239961f8305c09dc5523c4b6/public/assets/background2-ef109488fe2e07d4b632e0585eaf5d790f6c76cd0ca6bab49205ea2d109b9faf.jpg
remote:        I, [2017-12-13T20:24:49.132840 #1613]  INFO -- : Writing /tmp/build_c0948d29239961f8305c09dc5523c4b6/public/assets/logo-b5e4a8b5b47d679c0486c4d9c32da4acbf49f32cb86d9437ee05b927940a9a11.png
remote:        I, [2017-12-13T20:24:49.136007 #1613]  INFO -- : Writing /tmp/build_c0948d29239961f8305c09dc5523c4b6/public/assets/logo1-58014e47d65fe69689f38789fd525c155afd84ada92f80fa06ad2471f26a0eb5.png
remote:        rake aborted!
remote:        ExecJS::RuntimeError: SyntaxError: Unexpected token punc «,», expected punc «:»
remote:        JS_Parse_Error.get ((execjs):3538:621)
remote:        (execjs):4060:47
remote:        (execjs):1:102
remote:        Object.<anonymous> ((execjs):1:120)
remote:        Module._compile (module.js:570:32)
remote:        Object.Module._extensions..js (module.js:579:10)
remote:        Module.load (module.js:487:32)
remote:        tryModuleLoad (module.js:446:12)
remote:        Function.Module._load (module.js:438:3)
remote:        Module.runMain (module.js:604:10)
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/execjs-2.7.0/lib/execjs/external_runtime.rb:39:in `exec'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/execjs-2.7.0/lib/execjs/external_runtime.rb:21:in `eval'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/execjs-2.7.0/lib/execjs/external_runtime.rb:46:in `call'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/bundler/gems/uglifier-9abd18da4f5e/lib/uglifier.rb:195:in `run_uglifyjs'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/bundler/gems/uglifier-9abd18da4f5e/lib/uglifier.rb:157:in `compile'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/uglifier_compressor.rb:53:in `call'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/uglifier_compressor.rb:28:in `call'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:75:in `call_processor'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:56:in `reverse_each'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:56:in `call_processors'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb:134:in `load_from_unloaded'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb:60:in `block in load'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb:44:in `load'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb:20:in `block in initialize'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb:47:in `load'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/base.rb:66:in `find_asset'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/base.rb:73:in `find_all_linked_assets'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:142:in `block in find'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:114:in `block (2 levels) in logical_paths'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:228:in `block in stat_tree'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:212:in `block in stat_directory'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:209:in `each'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:209:in `stat_directory'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:227:in `stat_tree'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:105:in `each'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:105:in `block in logical_paths'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:104:in `each'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:104:in `logical_paths'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:140:in `find'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:185:in `compile'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:68:in `block (3 levels) in define'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/rake/sprocketstask.rb:147:in `with_logger'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:67:in `block (2 levels) in define'
remote:        /tmp/build_c0948d29239961f8305c09dc5523c4b6/vendor/bundle/ruby/2.3.0/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
remote:        Tasks: TOP => assets:precompile
remote:        (See full trace by running task with --trace)
remote:  !
remote:  !     Precompiling assets failed.
remote:  !
remote:  !     Push rejected, failed to compile Ruby app.
remote:
remote:  !     Push failed
remote: Verifying deploy....
remote:
remote: !   Push rejected to bungee-choreograpy.
remote:
To https://git.heroku.com/bungee-choreograpy.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/bungee-choreograpy.git'

1 个答案:

答案 0 :(得分:0)

汤姆,我刚刚做了rake资产:再次预编译。然后提交并推送到Heroku并且它可以工作!