Skip to content

Instantly share code, notes, and snippets.

@elskwid
Created November 18, 2010 17:20
Show Gist options
  • Save elskwid/705302 to your computer and use it in GitHub Desktop.
Save elskwid/705302 to your computer and use it in GitHub Desktop.
Warble configuration for console
require 'lib/console/version'
# Warbler web application assembly configuration file
Warbler::Config.new do |config|
config.dirs = %w(app config db lib log vendor)
config.includes = FileList["config/sun-web.xml"]
config.excludes = FileList["console.conf", "console.conf.*.bak"]
config.java_libs += FileList["java/*.jar"]
config.bundle_without = ["development", "test", "frozen"]
config.public_html = FileList["public/**/*"]
FileUtils.mkdir_p(File.join(Rails.root, "pkg"))
config.war_name = "pkg/#{::Console::Version::Filename}"
config.webxml.jruby.min.runtimes = 1
config.webxml.jruby.max.runtimes = 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment