Re: [Catalyst] Error in Accessing Database model
It wasn'n there!! I created the tmp direcoty n It worked! Thank you veru much! On Thu, Mar 17, 2011 at 7:09 PM, Octavian Rasnita orasn...@gmail.comwrote: *From:* sushant kumar sushantms...@gmail.com I'm using SQLite3 and catalyst to develop an application. When I try to access the database file (tmp/daatabase) , It gives error as UNABLE TO OPEN tmp/database. When I access databse without mentioning the name of database file, It works!! But Catalyst does not recognize the changes made in databse. $ sqlite3 tmp/database sqlitecreate table sample(id INTEGER(3), name TEXT); unable to open tmp/database!!! $ Do you have the directory tmp in the current directory? Octavian ___ 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/ ___ 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] Quick question on forward porting versus retaining existing code
Op 17-3-2011 21:27, Joe Landman schreef: On 03/17/2011 04:27 PM, Andrew Rodland wrote: On Thursday, March 17, 2011 02:51:59 PM Joe Landman wrote: Hi folks We have a Catalyst app we've developed since about 2005 or so. We put it aside in late 2008, and haven't touched it until now. I wanted to see if it would still work (as it turns out, we can reuse this for a new project). Before we get into this in depth, are there any pointers/blog posts/articles about forward porting an application (this was pre-Moose), or whether or not the app would work without forward porting? Basically we don't want to have to redevelop everything we put into that (login/authentication, views, etc.), and simply add to the existing app with a limited set of changes to make it current would be ideal. Thanks! Joe It's the intention of the Catalyst dev team that new releases don't break existing apps. The 5.7 to 5.8 transition broke that promise *slightly* more than most releases (mostly due to the C3 MRO), but a great many apps written for 5.7 will still run without any changes on 5.8, and of the remainder, 99% will only need very small changes. Rewriting your code to make explicit use of Moose is *not* required. Just deploy the app with the current version of Catalyst and current versions of any plugins it uses, and if there are any errors or warnings on startup, use them as guidance. If you run into a nut you can't crack, please feel free to come back for advice, but you should start out by just trying to run the app. For laughs, I just tried it, and modulo some module updates, it appears to work. Thanks folks, this is great! Should speed our development quite a bit! Andrew It's also worth it to take a look at http://search.cpan.org/dist/Catalyst-Runtime/lib/Catalyst/Upgrading.pod and http://search.cpan.org/dist/Catalyst-Runtime/lib/Catalyst/Delta.pod for a complete overview of important changes that you might need to apply when upgrading. -- Christiaan Kras http://blog.htbaa.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/
Re: [Catalyst] Where are my modules?
On 3/17/2011 4:24 AM, Carl Franks fireartist-at-gmail.com |Catalyst/Allow to home| wrote: It looks like cpan installed it, though its dependancies didn't install cleanly. Makefile.PL fails to require() it, so thinks its not installed. Try installing Data::Visitor - and check cpan's output for errors. If that still doesn't work, force install the listed modules: cpan i -f Catalyst::Plugin::ConfigLoader I know in the past cpan would continue to install modules, even if their prereqs failed - I can't remember if this was fixed by a cpan upgrade or a cpan config setting. Carl Thanks for the advice, everyone. I ended up rolling back and trying again. If I install the modules myself from cpan, it works fine. If I let 'make' pull stuff in, it goes crazy! I noticed the latter is using cpanplus at least sometimes. I wonder if that's the difference? I could not find a place in the cpanplus configuration to add 'sudo' like I did with cpan. ___ 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/
[Catalyst] How to use fastcgi
I've set up my app on an Apache server using fastcgi. Following the instructions in the cookbook and a few other places, The Virtual Server block looks something like this: ServerName www.ClientsDomainName.com ServerAlias CLientID.dlugosz.com ServerAlias ClientID.LocalCloneOfServer # Serve static content directly DocumentRoot /var/www/MyApp/MyApp-0.01/root Alias /static /var/www/MyApp/MyApp-0.01/root/static ErrorLog/var/www/MyApp/MyApp-0.01/logs/error_log CustomLog/var/www/MyApp/MyApp-0.01/logs/access_log combined FastCgiServer /var/www/MyApp/MyApp-0.01/script/MyApp_fastcgi.pl -processes 3 Alias / /var/www/MyApp/MyApp-0.01/script/MyApp_fastcgi.pl/ I went with unpacking the archive within a base directory of the same name, so that the base directory can be given permissions different from the main www directory. Any more suggestions and tips thus far? My question at this point concerns reloading and cycling of the fastcgi server. If I update the app's files, how do I reload it? I didn't see any feature similar to the -r on the development server. Looking at the process list, I see lots of Apache2 processes, none named fastcgi. I'm guessing that the fork done by Apache doesn't change the process name and command-line identification? So I can't just kill them off because I don't know which ones they are! ___ 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/