Permalink
Browse files

Added address and port arguments to rake server task. Address and por…

…t can now be passed in like this - rake server['192.168.x.x', '8088']
  • Loading branch information...
1 parent d51cfdb commit c77bdc5d825b92f4b7cd1cc11fd5b1bde2c76f58 @arunk arunk committed Mar 1, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/dubious_tasks.rb
View
@@ -39,12 +39,15 @@ def init(src, war)
cp APIS, api_jar
end
- task :server => [name] do
+ task :server , :address , :port , :needs => [name] do |t, args|
+ args.with_defaults(:address => '0.0.0.0', :port => '8080')
check_for_updates
args = [
'java', '-cp', TOOLS,
'com.google.appengine.tools.KickStart',
'com.google.appengine.tools.development.DevAppServerMain',
+ '--address=#{args.address}",
+ '--port=#{args.port}",
@war]
system *args
@done = true

0 comments on commit c77bdc5

Please sign in to comment.