我的简单网络应用程序在 Windows 7 上运行正常。现在我将其移至 bluehost。
启动应用程序时出现此错误:
ActionView::Template::Error (cannot load such file -- uglifier
试图解决它,我运行了“gem install 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
产量:在当前捆绑包中找不到 gem 'uglifier'
Gemfile 包括以下内容:
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 gem:
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