[Catalyst] Patch for Catalyst/Engine/FastCGI.pm
Little POD update - tux ~ # diff -u /usr/lib/perl5/vendor_perl/5.8.8/Catalyst/Engine/FastCGI.pm* --- /usr/lib/perl5/vendor_perl/5.8.8/Catalyst/Engine/FastCGI.pm 2008-07-31 03:45:35.0 +0300 +++ /usr/lib/perl5/vendor_perl/5.8.8/Catalyst/Engine/FastCGI.pm.new 2008-09-19 01:44:08.0 +0300 @@ -44,7 +44,9 @@ =item leave_umask -Set to 1 to disable setting umask to 0 for socket open =item nointr +Set to 1 to disable setting umask to 0 for socket open + +=item nointr Do not allow the listener to be interrupted by Ctrl+C - -- Sincerely yours, Oleg Kostyuk (CUB-UANIC) ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Help! Need help deploying app to Apache
Tomas, you have made me see the light! I moved the DocumentRoot to /LookingGlass and chowned it to apache.apache and everything works, now! Here is my command line (Fedora 9): sudo strace -f /usr/sbin/httpd -f /tmp/httpd.conf -X And here is the .conf I used: ServerName lg01pc01 Listen 80 PidFile run/httpd.pid User apache Group apache LoadModule perl_module modules/mod_perl.so StartServers 1 MinSpareServers1 MaxSpareServers1 ServerLimit 256 MaxClients 256 MaxRequestsPerChild 4000 PerlOptions +GlobalRequest PerlSwitches -I/LookingGlass/lib PerlSwitches -I/LookingGlass/lib/Net PerlSetEnv LookingGlassRoot /LookingGlass PerlModule LookingGlass DocumentRoot /LookingGlass/root/ SetHandler modperl PerlResponseHandler LookingGlass It was lame to assume that Apache could just cd into a directory under my home and access it - I guess there is a folder hierarchy it has to tranverse and my home folder is not +x to others... duh. I'll just my app's deployment folder to this root location and chown it all. Thanks! Now to merge this with the server's httpd.conf into a VirtualHost entry! On Wed, Sep 17, 2008 at 21:54, Tomas Doran <[EMAIL PROTECTED]> wrote: > Is there a way to know what path Catalyst is looking for the file? What was >> the precise error? Whatever info more you need, I am able to provide. >> Please >> help me... >> >> Thanks for your time reading this, >> > > strace is your friend. > > Copy your apache config to /tmp, reset it to a high port for testing, > reduce the MinSpareServers to 0, MinSpareServers to 1, and set StartServers > to 1 (assuming the prefork mpm here.. > > Then start your apache with strace -f, and grep out index.tt (i.e. say > something like: sudo strace -f /usr/sbin/apache2 -f /tmp/debugapache.conf > 2>&1 | grep index.tt | tee /tmp/apache-syscalls.log) > > Then hit the index page of your app, and you'll get what you want in the > output... > > Cheers > t0m > > > > > > ___ > List: Catalyst@lists.scsys.co.uk > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: > http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ > Dev site: http://dev.catalyst.perl.org/ > -- Bruno http://iruel.net ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
RE: [Catalyst] Pushing data to Catalyst powered web page
Hi all I did the following to get data to push to the web page: Scenario: An RFID tag is read and processed by an ALE server. The ALE server then sends the data to my Catalyst URL: http://x.x.x.x:3000/ale/notifier?tagdata The ale/notifier action then extracts the tag id from the variable and then does a lookup in a database to get the data associated to the tag. It then puts the tag data in a queue and the last action is to make a socket connection, as a client, to a socket server running inside the /assettracker/display_tagdata action. The following code is an extract from the ale/notifier: sub notify_tag_read { use IO::Socket::INET; my $MySocket=new IO::Socket::INET->new(PeerPort=>26482,Proto=>'udp',PeerAddr=>'x.x.x.x'); my $msg = ""; $MySocket->send($msg); } When I access, via a browser, the url http://x.x.x.x:3000/assettracker/display_tagdata it loads a socket server and waits for a connection from a client. The following is a snippet of the /assettracker/display_tagdata action: sub display_tagdata : Local { my ( $self, $c ) = @_; my $text; my @args; $c->stash->{template} = 'sockettest.tt2'; use IO::Socket::INET; my $MySocket=new IO::Socket::INET->new(LocalPort=>26482,Proto=>'udp',Reuse=>1); $MySocket->recv($text,128); @args = [$text]; $c->forward('get_tagdata',[EMAIL PROTECTED]); } This action will then forward to /assettracker/get_data to retrieve the data from the queue and display it in the browser. I know that the code is not great, but it works. Thank you for all the assistance that I received. Regards Morne -Original Message- From: Bill Moseley [mailto:[EMAIL PROTECTED] Sent: 12 September 2008 09:46 PM To: The elegant MVC web framework Subject: Re: [Catalyst] Pushing data to Catalyst powered web page On Fri, Sep 12, 2008 at 02:15:23PM +0200, Supra, Morne wrote: > > The problem that I have is that I have no idea how to push the data to a > web page instead of pulling. Pull with an AJAX update, perhaps. -- Bill Moseley [EMAIL PROTECTED] Sent from my iMutt ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ To read FirstRand Bank's Disclaimer for this email click on the following address or copy into your Internet browser: https://www.fnb.co.za/disclaimer.html If you are unable to access the Disclaimer, send a blank e-mail to [EMAIL PROTECTED] and we will send you a copy of the Disclaimer. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Failing tests in Catalyst::Controller::SOAP
2008/9/12 Zbigniew Lukasiak <[EMAIL PROTECTED]>: > Can anyone with more knowledge of SOAP tell if that is something important? Hi Zbyszek, try the previous versions of XML::Compile install MARKOV/XML-Compile-0.87.tar.gz install MARKOV/XML-Compile-SOAP-0.74.tar.gz Btw - anyone has any experience implementing ws-security with c::c::soap? Cheers, -- Adam http://langs-tech-stuff.blogspot.com/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/