2013-07-16 76 views
0

這是我得到的錯誤,當我嘗試推git到heroku。我剛剛創建了一個非常簡單的腳手架,並添加了一些JavaScript。這只是一個小小的Hello World計劃。對於jQuery和jQuery的UI我手動鏈接,並沒有使用的寶石文件,因爲使用它不會爲我工作。當我推送的時候,其餘的輸出都被省略了,因爲它們只是我們在推送過程中看到的常規內容。有任何想法嗎?無法將應用程序推送到heroku

-----> Writing config/database.yml to read from DATABASE_URL 
-----> Preparing app for Rails asset pipeline 
    Running: rake assets:precompile 
    rake aborted! 
    Unexpected character '#' (line: 423, col: 0, pos: 13212) 
    Error 
    at new JS_Parse_Error (/tmp/execjs20130716-578-jc9asx.js:2357:10736) 
    at js_error (/tmp/execjs20130716-578-jc9asx.js:2357:10955) 
    at parse_error (/tmp/execjs20130716-578-jc9asx.js:2357:12489) 
    at Object.next_token [as input] (/tmp/execjs20130716-578-jc9asx.js:2357:17217) 
    at next (/tmp/execjs20130716-578-jc9asx.js:2357:18479) 
    at semicolon (/tmp/execjs20130716-578-jc9asx.js:2357:19324) 
    at simple_statement (/tmp/execjs20130716-578-jc9asx.js:2357:21849) 
    at /tmp/execjs20130716-578-jc9asx.js:2357:20245 
    at /tmp/execjs20130716-578-jc9asx.js:2357:19536 
    at /tmp/execjs20130716-578-jc9asx.js:2357:31209 
    (in /tmp/build_2d5im50v1anke/app/assets/javascripts/application.js)/tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/execjs-1.4.0/lib/execjs/external_runtime.rb:68:in `extract_result' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/execjs-1.4.0/lib/execjs/external_runtime.rb:28:in `block in exec' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/execjs-1.4.0/lib/execjs/external_runtime.rb:41:in `compile_to_tempfile' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/execjs-1.4.0/lib/execjs/external_runtime.rb:27:in `exec' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/uglifier-2.1.2/lib/uglifier.rb:176:in `really_compile' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/uglifier-2.1.2/lib/uglifier.rb:100:in `compile' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/uglifier_compressor.rb:25:in `evaluate' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/context.rb:197:in `block in evaluate' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/context.rb:194:in `each' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/context.rb:194:in `evaluate' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/bundled_asset.rb:25:in `initialize' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/base.rb:377:in `new' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/base.rb:377:in `build_asset' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/index.rb:94:in `block in build_asset' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/caching.rb:58:in `cache_asset' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/index.rb:93:in `build_asset' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/base.rb:287:in `find_asset' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/index.rb:61:in `find_asset' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/manifest.rb:211:in `block in find_asset' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/manifest.rb:257:in `benchmark' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/manifest.rb:210:in `find_asset' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/manifest.rb:119:in `block in compile' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/manifest.rb:118:in `each' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/manifest.rb:118:in `compile' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.0/lib/sprockets/rails/task.rb:60:in `block (3 levels) in define' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/rake/sprocketstask.rb:146:in `with_logger' 
    /tmp/build_2d5im50v1anke/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.0/lib/sprockets/rails/task.rb:59: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/Rails app 

回答

0

好像你在423行的app/assets/javascripts/application.js中有語法錯誤。它表示錯誤是#符號。刪除它,然後重試。

相關問題