[Nitro] Setting the runner port?

Michael Fellinger m.fellinger at gmail.com
Sat Oct 15 17:35:51 EDT 2005


It is actually quite simple to do that,

Nitro::Server.port
Nitro::Server.host

(these are only values from memory, so don't rely on them, i will
lookup the real values in a second when i get access to my svn)

On 10/15/05, James Britt <james_b at neurogami.com> wrote:
> James Britt wrote:
> > I thought I could change the default port for the Spark wiki (running
> > with the WEBrick runner) like this, in run.rb:
> >
> >   Nitro.run( :controller =>  WikiController,
> >              :port => 7070 )
> >
> >
> > But it doesn't seem to do what I want, and in poking through the code it
> > appears that 'run' passes the options hash off to 'start', but in
> > neither place is anything looking for a :port option.
> >
> > How can I change the port?
> >
>
> And the host, too.  I've manged to just hack the source, but I'm blind
> as to where I set application config settings.
>
>
>
> James
>
>
> --
>
> http://www.ruby-doc.org - The Ruby Documentation Site
> http://www.rubyxml.com  - News, Articles, and Listings for Ruby & XML
> http://www.rubystuff.com - The Ruby Store for Ruby Stuff
> http://www.jamesbritt.com  - Playing with Better Toys
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>




More information about the Nitro-general mailing list