[Nitro] nitro command vs run.rb

George Moschovitis george.moschovitis at gmail.com
Fri Oct 27 06:06:12 EDT 2006


Ok, Fab

will fix this.

-g.

On 10/27/06, Fabian Buch <fabian at fabian-buch.de> wrote:
> Don't want to debate on whether either of them is better, there are
> and will be uses for both (actually I prefer run.rb for various
> reasons). But I just found a problem with running nitro directly via
> run.rb instead of via the nitro command:
>
> I have the following in my run.rb:
>
> Configuration.load
> Og.start
> Nitro.start
>
> So running "ruby run.rb --live" first loads conf/WHAT? It loads conf/
> debug.rb not conf/live.rb and that's because --live is parsed in
> Nitro.start and Configuration.load knows nothing about it. Nitro is
> started in live mode, but debug configuration is loaded.
>
> That wouldn't be a problem if the Runner would load live conf later,
> but that's commented in runner.rb
>
> #    load_external_configuration(:live)
>
> George, I want that uncommented again and don't tell me to use the
> "nitro" command. I don't want to. Is it somehow possible to get "ruby
> run.rb --live" back? Worked nicely in the past.
>
> Fabian
>
>
> --
> Nitro Q&A: http://oxyliquit.de/
> Blog: http://blog.fabian-buch.de
>
>
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>


-- 
http://www.gmosx.com
http://www.nitroproject.org


More information about the Nitro-general mailing list