... Dancer/Logger.pm ...

Hold the presses

ack -i chmod ...site/lib/Dancer* 32: chmod($perm | 0700, $logroot); 34: carp "app directory '$logroot' isn't writable/executabl +e and can't chmod it";

Why does your Dancer setup think $logroot is in MyApp/bin/..? Usually its in some kind of log/ directory ... a writable log directory :)

... It seems a permission problem, but I don't know how to fix it. ...

Learn to fix it :) man chmod ... :) CGI Help Guide , Troubleshooting Perl CGI scripts, File Permissions , File security, http://www.yolinux.com/TUTORIALS/LinuxTutorialManagingGroups.html

Is there a better way to launch an external program from route handler?

Sure , in the background with Proc::Background so it doesn't block the webpage:) Re: Providing feedback to Web GUI (Mojolicious)

where should I store these external programs, thus they can be executed by the dancer app when it was deployed as CGI.

if they're perlish, bin sounds good

Could anyone help me? Thanks.

Maybe, but you've got to do most of the typing and checking :)

I asked this question at StackOverflow.

Crossposted to http://stackoverflow.com/questions/20833945/how-to-deploy-perl-dancer-app-with-cgi-and-calling-external-scripts

I cross-linked this cross-postings for maximum collaboration efficiency

But I thought I may get a quicker response here.

There are checklist for that :) Basic debugging checklist , brian's Guide to Solving Any Perl Problem, CGI Help Guide , Troubleshooting Perl CGI scripts


In reply to Re: How to deploy perl dancer app with cgi and calling external scripts? by Anonymous Monk
in thread How to deploy perl dancer app with cgi and calling external scripts? by Anonymous Monk

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.