作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试使用 Warbler
从我的 Rails 项目创建一个 war 文件.
这是我的 Gemfile:
source 'https://rubygems.org'
ruby '1.9.3', :engine => 'jruby', :engine_version => '1.7.4'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0'
# Use mysql as the database for Active Record
#gem 'mysql2'
gem 'jdbc-mysql'
gem 'activerecord-jdbcmysql-adapter'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
gem 'jquery-ui-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'
group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', require: false
end
gem 'haml-rails'
gem 'chosen-rails'
gem "compass-rails", "~> 2.0.alpha.0"
gem 'twitter-bootstrap-rails'
gem 'less-rails'
#gem 'therubyracer'
gem 'therubyrhino'
gem 'rails-erd'
gem 'faker'
gem 'devise'
gem 'cancan'
gem 'kaminari'
gem 'paperclip'
gem 'remotipart', '~> 1.0'
gem 'cancan'
gem 'rails_admin'
gem 'puma'
gem 'rubyzip', :require => 'zip/zip'
gem 'warbler'
# Use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# Use unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano', group: :development
# Use debugger
# gem 'debugger', group: [:development, :test]
gem 'gibberish'
# gem 'jquery-turbolinks'
gem "paper_trail", "~> 3.0.0.beta1"
gem install warbler
warble
.但我得到了错误:
LoadError: no such file to load -- zip/zip
require at org/jruby/RubyKernel.java:1054
(root) at /home/stever/.rvm/gems/jruby-1.7.4/gems/warbler-1.3.8/lib/warbler/jar.rb:8
require at org/jruby/RubyKernel.java:1054
(root) at /home/stever/.rvm/gems/jruby-1.7.4/gems/warbler-1.3.8/lib/warbler/task.rb:1
require at org/jruby/RubyKernel.java:1054
(root) at /home/stever/.rvm/gems/jruby-1.7.4/gems/warbler-1.3.8/lib/warbler/task.rb:11
require at org/jruby/RubyKernel.java:1054
(root) at /home/stever/.rvm/gems/jruby-1.7.4/gems/warbler-1.3.8/lib/warbler.rb:1
load at org/jruby/RubyKernel.java:1073
(root) at /home/stever/.rvm/gems/jruby-1.7.4/gems/warbler-1.3.8/lib/warbler.rb:35
eval at org/jruby/RubyKernel.java:1093
(root) at /home/stever/.rvm/gems/jruby-1.7.4/bin/ruby_noexec_wrapper:14
最佳答案
RubyZip版本 1.0.0 更改了几个类名和文件的位置为要求。当您的项目依赖项之一依赖于 v1.0.0 接口(interface),而另一个依赖于 v0.9.9 接口(interface)时,这会带来问题。要缓解这个问题,请尝试添加 zip-zip gem 到您的项目。它使用 v0.9.9 接口(interface)为您的依赖项提供了一个简单的适配器,允许您升级到 RubyZip v1.0.0。
关于ruby-on-rails - 莺 - 没有这样的文件来加载 zip/zip,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18736166/
我正在按照位于 here 的指南进行操作将 Redmine 安装到 Tomcat,但我在运行 Warbler 时遇到了问题。当我尝试运行时 ruby /var/lib/gems/1.8/gems/wa
我正在使用 Jruby 和 Warbler 将 Jruby on Rails 应用程序部署到 Tomcat 服务器。当我使用 Webrick 部署服务器时,我可以看到我的所有图像:jruby -S s
我正在尝试使用 Warbler 从我的 Rails 项目创建一个 war 文件. 这是我的 Gemfile: source 'https://rubygems.org' ruby '1.9.3', :
我是一名优秀的程序员,十分优秀!