in reply to How to deploy perl dancer app with cgi and calling external scripts?
... 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
|
|---|