Created
April 16, 2010 13:20
-
-
Save waynegraham/368399 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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