Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added address and port arguments to rake server task. #27

Merged
2 commits merged into from

1 participant

@arunk

I have added two arguments called address and port to the server task in dubious_tasks.rb. They take the default values of '0.0.0.0' for address and '8080' for port. To pass in arguments they must be called like this - rake server['10.1.x.x', '8089']
The first argument is the address and the second one is the port.

arunk added some commits
@arunk arunk 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']
c77bdc5
@arunk arunk Small correction 522fc22
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 1, 2011
  1. @arunk

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

    arunk authored
    …t can now be passed in like this - rake server['192.168.x.x', '8088']
  2. @arunk

    Small correction

    arunk authored
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/dubious_tasks.rb
View
5 lib/dubious_tasks.rb
@@ -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
Something went wrong with that request. Please try again.