Re: [Catalyst] Newbie questions regarding nginx/fastcgi configuration
El 16/12/2012 23:21, Kieren Diment escribió: The source of your confusion is that you probably want a way > to stop and start it cleanly. I've heard people like daemontools > for that, although the wrong and filthy way to do it is to run the > fastcgi script in a screen session. I used to setup a daemontools service, but now i prefer to set it up as as service managed by upstart. Here is the template I use for the config file: http://paste.scsys.co.uk/219238 That way you can start and stop your app with the usual commands: # service mywebapp start # service mywebapp stop Hope it helps. -- Miquel Ruiz ___ 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] Newbie questions regarding nginx/fastcgi configuration
Hello! The source of your confusion is that you probably want > a way to stop and start it cleanly. I've heard people > like daemontools for that, although the wrong and filthy > way to do it is to run the fastcgi script in a screen session. One can also use the daemon start/stop scripts of the operating system. That should be clean enough. For instance I created a start/stop script in the Gentoo /etc/rc.d directory, which manages the things and assing the correct UID to the process. Works smoothly. Cheers, Michele. -- Michele Beltrame http://www.italpro.net/ - m...@italpro.net Skype: arthas77 - Twitter: _arthas ___ 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] Newbie questions regarding nginx/fastcgi configuration
Here's a basic run script I use for my projects, think I got it from the Catalyst wiki pages somwehere... http://paste.scsys.co.uk/219142 On 12/16/2012 10:21 PM, Kieren Diment wrote: On 17/12/2012, at 9:09 AM, Victor Cassen wrote: Hi, I am trying to deploy my first Catalyst application using nginx, and I am confused by various sources of documentation as to whether or not I'm required to run a separate fastcgi wrapper, or whether script/ myapp_fastcgi.pl *is* my wrapper. If I do need a separate wrapper, is there one that is preferred? The *fastcgi.pl is your wrapper. The source of your confusion is that you probably want a way to stop and start it cleanly. I've heard people like daemontools for that, although the wrong and filthy way to do it is to run the fastcgi script in a screen session. ___ 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/ -- IntelCompute Web Design & Online Marketing Experts http://www.intelcompute.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] Newbie questions regarding nginx/fastcgi configuration
On 17/12/2012, at 9:09 AM, Victor Cassen wrote: > Hi, > > I am trying to deploy my first Catalyst application using nginx, and I am > confused by various sources of documentation as to whether or not I'm > required to run a separate fastcgi wrapper, or whether script/ > myapp_fastcgi.pl *is* my wrapper. If I do need a separate wrapper, is > there one that is preferred? > The *fastcgi.pl is your wrapper. The source of your confusion is that you probably want a way to stop and start it cleanly. I've heard people like daemontools for that, although the wrong and filthy way to do it is to run the fastcgi script in a screen session. ___ 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] Newbie questions regarding nginx/fastcgi configuration
Hi, I am trying to deploy my first Catalyst application using nginx, and I am confused by various sources of documentation as to whether or not I'm required to run a separate fastcgi wrapper, or whether script/ myapp_fastcgi.pl *is* my wrapper. If I do need a separate wrapper, is there one that is preferred? -- -Victor Cassen Let's play motorcycle tag! CRASH! You're it! ___ 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/