Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

[Announce] App::ForExample: Helper to generate Catalyst configurations

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


robertkrimen at gmail

Jun 8, 2009, 2:29 PM

Post #1 of 3 (447 views)
Permalink
[Announce] App::ForExample: Helper to generate Catalyst configurations

Last Tuesday, during a SFPUG Catalyst talk, I announced App::ForExample

http://search.cpan.org/perldoc?App::ForExample
http://search.cpan.org/dist/App-ForExample

This is the tool I've written to help with the deployment stage of
publishing a Catalyst application. It will
generate configurations for Apache, lighttpd, nginx:

App::ForExample is a command-line tool for generating sample configurations.
It is not designed to do configuration
management, but rather as a guide to get you 80% of the way there

Besides the usual Apache, lighttpd, nginx, and FastCGI configurations,
App::ForExample can create a FastCGI start-stop script and a monit
configuration for monitoring those processes

Here is some typical usage:

# To output a FastCGI (ExternalServer)/Apache configuration (with monit
stub and start-stop script), run:
for-example catalyst/fastcgi apache2 standalone --package My::App
--hostname example.com --output my-app

# The above command would have created the following:

my-app.apache2 The Apache2 virtual host configuration (hosted at
(www.)example.com)
my-app.start-stop The start/stop script to launch the FastCGI
process
my-app.monit A monit stub used for monitoring the FastCGI
process

# This will generate a basic, stripped-down monit configuration (monitrc)
suitable for a non-root user:
for-example monit --home $HOME/monit --output $HOME/monit/monitrc

# A mod_perl configuration for Catalyst:
for-example catalyst/mod_perl --package Project::Xyzzy --hostname
xyzzy.com --home Project-Xyzzy

A tutorial for Apache2 with FastCGI on Ubuntu:

http://search.cpan.org/perldoc?App::ForExample#Apache2_with_FastCGI_on_Ubuntu

You can install App::ForExample by using CPAN:

cpan -i App::ForExample

If that doesn't work properly, you can find help at:

http://sial.org/howto/perl/life-with-cpan/
http://sial.org/howto/perl/life-with-cpan/macosx/ # Help on Mac OS X
http://sial.org/howto/perl/life-with-cpan/non-root/ # Help with a
non-root account

The source repository is:

http://github.com/robertkrimen/App-ForExample/tree/master

Rob


devin.austin at gmail

Jun 8, 2009, 2:38 PM

Post #2 of 3 (402 views)
Permalink
Re: [Announce] App::ForExample: Helper to generate Catalyst configurations [In reply to]

you++.

I was just thinking about something like this as a "hmmm i don't feel like
thinking, i want catalyst to do that for me".

On Mon, Jun 8, 2009 at 3:29 PM, Robert Krimen <robertkrimen[at]gmail.com>wrote:

> Last Tuesday, during a SFPUG Catalyst talk, I announced App::ForExample
>
> http://search.cpan.org/perldoc?App::ForExample
> http://search.cpan.org/dist/App-ForExample
>
> This is the tool I've written to help with the deployment stage of
> publishing a Catalyst application. It will
> generate configurations for Apache, lighttpd, nginx:
>
> App::ForExample is a command-line tool for generating sample
> configurations. It is not designed to do configuration
> management, but rather as a guide to get you 80% of the way there
>
> Besides the usual Apache, lighttpd, nginx, and FastCGI configurations,
> App::ForExample can create a FastCGI start-stop script and a monit
> configuration for monitoring those processes
>
> Here is some typical usage:
>
> # To output a FastCGI (ExternalServer)/Apache configuration (with monit
> stub and start-stop script), run:
> for-example catalyst/fastcgi apache2 standalone --package My::App
> --hostname example.com --output my-app
>
> # The above command would have created the following:
>
> my-app.apache2 The Apache2 virtual host configuration (hosted
> at (www.)example.com)
> my-app.start-stop The start/stop script to launch the FastCGI
> process
> my-app.monit A monit stub used for monitoring the FastCGI
> process
>
> # This will generate a basic, stripped-down monit configuration
> (monitrc) suitable for a non-root user:
> for-example monit --home $HOME/monit --output $HOME/monit/monitrc
>
> # A mod_perl configuration for Catalyst:
> for-example catalyst/mod_perl --package Project::Xyzzy --hostname
> xyzzy.com --home Project-Xyzzy
>
> A tutorial for Apache2 with FastCGI on Ubuntu:
>
>
> http://search.cpan.org/perldoc?App::ForExample#Apache2_with_FastCGI_on_Ubuntu
>
> You can install App::ForExample by using CPAN:
>
> cpan -i App::ForExample
>
> If that doesn't work properly, you can find help at:
>
> http://sial.org/howto/perl/life-with-cpan/
> http://sial.org/howto/perl/life-with-cpan/macosx/ # Help on Mac OS
> X
> http://sial.org/howto/perl/life-with-cpan/non-root/ # Help with a
> non-root account
>
> The source repository is:
>
> http://github.com/robertkrimen/App-ForExample/tree/master
>
> Rob
> _______________________________________________
> List: Catalyst[at]lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
>


--
Devin Austin
http://www.codedright.net
http://www.dreamhost.com/r.cgi?326568/hosting.html - Host with DreamHost!


hutchinson.chris at gmail

Jun 8, 2009, 4:19 PM

Post #3 of 3 (403 views)
Permalink
Re: [Announce] App::ForExample: Helper to generate Catalyst configurations [In reply to]

On Tue, Jun 9, 2009 at 7:29 AM, Robert Krimen<robertkrimen[at]gmail.com> wrote:
> Last Tuesday, during a SFPUG Catalyst talk, I announced App::ForExample
>

Excellent, Rob! Reduces the barriers to dipping a toe into the
Catalyst waters - well worth it.

- Chris

_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.