我在 JRuby 中有一个 rails 应用程序,当我运行它时,rake assets:precomile
它只会创建一个/public/assets/manifest.yml
包含以下内容的文件:
--- {}
...
所有的资产都没有被预编译,但是当我尝试跟踪这个时我没有得到任何错误:
tbraun@tbraun-DEBIAN:~/Dokumente/Entwicklung/RubyOnRails/Passbildkartei$ rake assets:precompile --trace
** Invoke environment (first_time)
** Execute environment
** Invoke assets:precompile (first_time)
** Execute assets:precompile
/home/tbraun/.rvm/rubies/jruby-1.6.7.2/bin/jruby /home/tbraun/.rvm/gems/jruby-1.6.7.2/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace
** Invoke environment (first_time)
** Execute environment
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment
** Invoke tmp:cache:clear (first_time)
** Execute tmp:cache:clear
** Execute assets:precompile:primary
** Invoke environment (first_time)
** Execute environment
** Invoke assets:precompile:nondigest (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment
** Invoke tmp:cache:clear (first_time)
** Execute tmp:cache:clear
** Execute assets:precompile:nondigest
但是我的资产目录中有一些图像、javascripts 和样式表,我不知道我能做些什么来解决这个问题。
我的 JRuby 版本是:
jruby 1.6.7.2 (ruby-1.9.2-p312) (2012-05-01 26e08ba) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_26) [linux-amd64-java]
这是我正在使用的宝石:
source 'https://rubygems.org'
gem 'rails', '3.2.3'
gem "haml", "~> 3.1.4"
gem "paperclip", "~> 3.0"
gem "will_paginate", "~> 3.0.3"
gem "devise", "~> 2.1.2"
gem "devise_ldap_authenticatable", "~> 0.6.1"
gem 'activerecord-jdbcsqlite3-adapter'
gem 'activerecord-jdbcmysql-adapter'
gem 'jruby-openssl'
gem 'json'
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'therubyrhino'
gem 'uglifier', '>= 1.0.3'
gem "haml-rails", "~> 0.3.4"
gem "warbler", "~> 1.3.5"
end
gem 'jquery-rails'
有谁知道如何解决这个问题?