0

当我使用 git push heroku 时,我想将我的 rails 应用程序推送到 heroku 我得到了这个错误,而且我在 heroku 中的应用程序根本没有改变。我使用导轨 3.27

无法加载此类文件 - uglifier(在 /Users/ehsanvalizadeh/Documents/cafemajale/cafemajale/app/assets/javascripts/application.js)/Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/ activesupport-3.2.7/lib/active_support/dependencies.rb:251:in require' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.7/lib/active_support/dependencies.rb:251:inblock in require' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.7/lib/active_support /dependencies.rb:236:in load_dependency' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.7/lib/active_support/dependencies.rb:251:inrequire' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.7/lib/sprockets/compressors.rb:31:inregistered_js_compressor' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.7/lib/sprockets/bootstrap.rb:18:in块在运行' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.7/lib/sprockets/compressors.rb:80:incall' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.7/lib/sprockets/compressors.rb:80:in压缩器' /Users/ehsanvalizadeh/.rvm/gems/ ruby-1.9.3-p194/gems/actionpack-3.2.7/lib/sprockets/compressors.rb:74:incompress' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/sprockets-2.1.3/lib/sprockets/processing.rb:265:in块在 js_compressor=' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/sprockets-2.1.3/lib/sprockets/processor.rb:29:incall' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/sprockets-2.1.3/lib/sprockets/processor.rb:29:in评估'/Users/ehsanvalizadeh/。 rvm/gems/ruby-1.9.3-p194/gems/tilt-1.3.3/lib/tilt/template.rb:76:inrender' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/sprockets-2.1.3/lib/sprockets/context.rb:177:in块在评估'/Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3 -p194/gems/sprockets-2.1.3/lib/sprockets/context.rb:174:ineach' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/sprockets-2.1.3/lib/sprockets/context.rb:174:in评估'/Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/sprockets-2.1.3/ lib/sprockets/bundled_asset.rb:26:in initialize' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/sprockets-2.1.3/lib/sprockets/base.rb:244:innew' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/sprockets-2.1.3/lib/sprockets/base.rb:244:inbuild_asset' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/sprockets-2.1.3/lib/sprockets/index.rb:89:in块在 build_asset' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/sprockets-2.1.3/lib/sprockets/caching.rb:19:incache_asset' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/sprockets-2.1.3/lib/sprockets/index.rb:88:inbuild_asset' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/sprockets-2.1.3/lib/sprockets/base.rb:163:in find_asset' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/sprockets-2.1.3/lib/sprockets/index.rb:56:infind_asset' /Users/ehsanvalizadeh/.rvm/gems /ruby-1.9.3-p194/gems/actionpack-3.2.7/lib/sprockets/static_compiler.rb:23:in block in compile' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/sprockets-2.1.3/lib/sprockets/base.rb:212:inblock in each_logical_path' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/ gems/sprockets-2.1.3/lib/sprockets/base.rb:200:in block (2 levels) in each_file' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/sprockets-2.1.3/lib/sprockets/base.rb:190:ineach' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/sprockets-2.1.3/lib/sprockets /base.rb:190:in each_entry' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/sprockets-2.1.3/lib/sprockets/base.rb:198:inblock in each_file' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/sprockets-2.1.3/lib/sprockets/base.rb:197:in each' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/sprockets-2.1.3/lib/sprockets/base.rb:197:ineach_file ' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/sprockets-2.1.3/lib/sprockets/base.rb:210:ineach_logical_path' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.7/lib/sprockets/static_compiler.rb:18:in编译' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.7/lib/sprockets/assets.rake:56:ininternal_precompile' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.7/lib/sprockets/assets.rake:70:in块(3级)' /Users/ehsanvalizadeh /.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.7/lib/sprockets/assets.rake:60:in block (3 levels) in <top (required)>' Tasks: TOP => assets:precompile:primary (See full trace by running task with --trace) rake aborted! Command failed with status (1): [/Users/ehsanvalizadeh/.rvm/rubies/ruby-1.9...] /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.7/lib/sprockets/assets.rake:12:inruby​​_rake_task' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3 -p194/gems/actionpack-3.2.7/lib/sprockets/assets.rake:21:in invoke_or_reboot_rake_task' /Users/ehsanvalizadeh/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.7/lib/sprockets/assets.rake:29:inblock (2 levels) in ' Tasks: TOP => assets:precompile (通过使用 --trace 运行任务查看完整跟踪)

4

1 回答 1

1

放入此行或更改现有的Gemfile

gem 'uglifier', :group => :production
于 2013-01-07T23:04:26.777 回答