Hi -

I'm new to Catalyst, and I'm having some trouble using the catalystapp_server.pl script: after I start it, and after I've browsed to a few pages in my app, I can't ctrl-c to exit. I can't use ctrl-Z or ctrl-D either. In addition, if I use the -r flag when I start the server (to make it restart when code changes), the server fails to restart. When code changes, I see it attempt to restart, but it fails. I end up having to start another session to kill the original process.

One clue seems to be that the server only gets into this state once I've visited a page that uses my DBIx::Class-based model. I'm using DBD::Oracle to connect to the database.

My code is fairly simple. Here's the handler from my controller:

sub list_schools : Local { my ($self, $c) = @_; my @schools = $c->model('CourseAPI::School')->all; $c->stash->{schools} = \@schools; $c->stash->{template} = 'list_schools.tt'; }
and here's my template:
<h1>list schools</h1> <ul> [% FOREACH school IN schools %] <li><a href="/courses/get_school/[% school.school_id %]">[% sc +hool.title_short %]</a></li> [% END %] </ul>

My model code is standard DBIx::Class; I'm not doing anything fancy or overriding anything.

Anyone know what's going on here? Let me know if there are more details that would be useful.

Thanks!

In reply to Can't ctrl-c out of a catalyst server script by caffeine

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.