我的簡單網絡應用程序在Windows 7上運行正常。現在我將它移動到bluehost。無法在當前包中找到gem'uglifier'
ActionView::Template::Error (cannot load such file -- uglifier
試圖解決它,我已經運行「寶石安裝uglifier」,似乎大多工作:
SSH# gem install uglifier
Successfully installed uglifier-1.3.0
1 gem installed
Installing ri documentation for uglifier-1.3.0...
unable to convert "\xC2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for README.md, skipping
Installing RDoc documentation for uglifier-1.3.0...
unable to convert "\xC2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for README.md, skipping
但是,當我試圖找到
開始,當應用程序收到此錯誤沒有發現寶石:
bundle show uglifier
收益率: 找不到g時間在當前束
的Gemfile 'uglifier' 包括以下內容:
group :assets do
gem 'therubyracer'
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end
和Gemfile.lock的表明uglifier寶石安裝:
uglifier (1.3.0)
$ PATH信息:
/usr/local/jdk/bin:/home4/mychairs/perl5/bin:/usr/lib64/qt-3.3/bin:/home4/mychairs/perl5/bin:/ramdisk/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11R6/bin:/home4/mychairs/ruby/gems/bin:/home4/mychairs/ruby/gems:/home4/mychairs/bin
相同的結果 - 捆綁運行良好,但找不到uglifier。如果它很重要,'uglifier'不會顯示在bundle執行過程中的「Using xxx」gem列表中。 – vbsql7
更新了我的帖子.. – Lichtamberg