generators/warble/templates/warble.rb in warbler-0.9.9 vs generators/warble/templates/warble.rb in warbler-0.9.10
- old
+ new
@@ -23,19 +23,25 @@
# One or more pathmaps defining how the java classes should be copied into
# WEB-INF/classes. The example pathmap below accompanies the java_classes
# configuration above. See http://rake.rubyforge.org/classes/String.html#M000017
# for details of how to specify a pathmap.
- # config.pathmaps.java_classes << "%{target/classes/,}"
+ # config.pathmaps.java_classes << "%{target/classes/,}p"
- # Gems to be packaged in the webapp. Note that Rails gems are added to this
- # list if vendor/rails is not present, so be sure to include rails if you
- # overwrite the value
- # config.gems = ["activerecord-jdbc-adapter", "jruby-openssl"]
+ # Gems to be included. You need to tell Warbler which gems your application needs
+ # so that they can be packaged in the war file.
+ # The Rails gems are included by default unless the vendor/rails directory is present.
+ # config.gems += ["activerecord-jdbcmysql-adapter", "jruby-openssl"]
# config.gems << "tzinfo"
- # config.gems["rails"] = "1.2.3"
+ # Uncomment this if you don't want to package rails gem.
+ # config.gems -= ["rails"]
+
+ # The most recent versions of gems are used.
+ # You can specify versions of gems by using a hash assignment:
+ # config.gems["rails"] = "2.0.2"
+
# Include gem dependencies not mentioned specifically
config.gem_dependencies = true
# Files to be included in the root of the webapp. Note that files in public
# will have the leading 'public/' part of the path stripped during staging.
@@ -51,9 +57,15 @@
# Value of RAILS_ENV for the webapp
config.webxml.rails.env = 'production'
# Application booter to use, one of :rack, :rails, or :merb. (Default :rails)
# config.webxml.booter = :rails
+
+ # When using the :rack booter, "Rackup" script to use.
+ # The script is evaluated in a Rack::Builder to load the application.
+ # Examples:
+ # config.webxml.rackup = %{require './lib/demo'; run Rack::Adapter::Camping.new(Demo)}
+ # config.webxml.rackup = require 'cgi' && CGI::escapeHTML(File.read("config.ru"))
# Control the pool of Rails runtimes. Leaving unspecified means
# the pool will grow as needed to service requests. It is recommended
# that you fix these values when running a production server!
# config.webxml.jruby.min.runtimes = 2
\ No newline at end of file