<div dir="ltr">That really is a tricky point... I'm not exactly sure, to be honest.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Sep 17, 2013 at 11:28 PM, Gideon D'souza <span dir="ltr"><<a href="mailto:gidisrael@gmail.com" target="_blank">gidisrael@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey folks,<div><br></div><div>So I'm working on fixing issue #393:</div><div><a href="https://github.com/PerlDancer/Dancer2/issues/393" target="_blank">https://github.com/PerlDancer/Dancer2/issues/393</a><br>

</div><div>

<br></div><div>I'm sorry to have gotten jammed up with such a simple task. I ran into a small issue which might relate to other things going on.</div><div><br></div><div>(1) I cannot use setting(port => 1234) or setting(environment => "stage") inside GetOpt like Dancer1. It fails. </div>



<div>Here is the line that fails:</div><div><a href="https://github.com/gideondsouza/Dancer2/blob/pr/command_line_support/lib/Dancer2/GetOpt.pm#L15" target="_blank">https://github.com/gideondsouza/Dancer2/blob/pr/command_line_support/lib/Dancer2/GetOpt.pm#L15</a><br>



</div><div><br></div><div>@mst did point out this is incorrect, I should point to the config setting on the app instance. A larger problem here is that this doesn't work either.</div><div><br></div><div>(2) $app->setting(..) or $runner->setting(..) don't work. </div>



<div>See : <a href="https://github.com/gideondsouza/Dancer2/blob/pr/command_line_support/lib/Dancer2.pm#L151" target="_blank">https://github.com/gideondsouza/Dancer2/blob/pr/command_line_support/lib/Dancer2.pm#L151</a></div>

<div><br></div>

<div>What also perplexed me is that if I put a breakpoint at a line inside Dancer2::import it wouldn't stop and just go and run the server.</div><div><br></div><div>So what should I do here?  Setting $ENV{} works. Should I do this? Am I doing something wrong? Is there anything else I should fix first?</div>



<div><br></div><div>Regards,</div><div>Gideon</div></div>
<br>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></blockquote></div><br></div>