Skip to content

Instantly share code, notes, and snippets.

@waynegraham
Created April 16, 2010 13:20
Show Gist options
  • Save waynegraham/368399 to your computer and use it in GitHub Desktop.
Save waynegraham/368399 to your computer and use it in GitHub Desktop.
namespace :geoserver do
jetty_dir = ENV['dir'] || 'geoserver-2.0.1'
jetty_start_port = ENV['port'] || 8983
jetty_stop_port = ENV['stop_port'] || 8079
jetty_stop_key = ENV['stop_key'] || 'STOPME'
java_opts = 'Xmx512m -Xms512m'
desc 'Starts geoserver; will attempt to stop jetty/geoserver first.'
task :start=>['stop'] do
puts "*** starting geoserver on port #{jetty_start_port}..."
puts "*** accessible on the web at http://localhost:8080/geoserver/web/"
`cd #{jetty_dir} && bin/startup.sh`
end
desc 'Stops geoserver'
task :stop do
`cd #{jetty_dir} && bin/shutdown.sh`
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment