[Catalyst-commits] r12371 - trunk/examples/CatalystAdvent/root/2009/pen

t0m at dev.catalyst.perl.org t0m at dev.catalyst.perl.org
Mon Dec 14 22:23:59 GMT 2009


Author: t0m
Date: 2009-12-14 22:23:58 +0000 (Mon, 14 Dec 2009)
New Revision: 12371

Added:
   trunk/examples/CatalystAdvent/root/2009/pen/config_for_beginners.pod
   trunk/examples/CatalystAdvent/root/2009/pen/media_delivery.pod
Log:
Skeleton advent articles. These need a hell of a lot of actually _writing_, but here's something :)

Added: trunk/examples/CatalystAdvent/root/2009/pen/config_for_beginners.pod
===================================================================
--- trunk/examples/CatalystAdvent/root/2009/pen/config_for_beginners.pod	                        (rev 0)
+++ trunk/examples/CatalystAdvent/root/2009/pen/config_for_beginners.pod	2009-12-14 22:23:58 UTC (rev 12371)
@@ -0,0 +1,49 @@
+
+=head1 The Catalyst config system, what you need to know.
+
+I assume everyone has read wreis' excelent advent article about how to do
+B<really flexible> things with L<Catalyst::Plugin::ConfigLoader>, right?
+(L<Catalyst Advent Calendar 2007-15|http://www.catalystframework.org/calendar/2009/XX>)
+
+This article is for anyone just starting out who looked at that and was confused.
+
+So I'm going to present a I<really simple> (i hope), guide to how config works,
+and a couple of simple patterns and techniques for successfully using it in your
+applications.
+
+So, lets start at the start - I'll step back, and explain what I'd like to
+achieve:
+
+=begin
+
+=item *
+
+=back
+
+=head2 Catalyst config
+
+Each L<Component|Catalyst::Component> is
+
+* Config inheritance/overriding
+* What formats are available
+* Default config file
+
+=head2 Config loading
+
+* myapp_local.conf
+CONFIG_LOCAL_SUFFIX
+
+=head2 A strategy
+
+Move user settable settings out into config file
+Leave them commented out so the app explodes??
+Expect generation of _local.conf for DB settings.
+svn/git ignore
+
+=head2 An example
+
+Gitalist Pod
+
+=head1 AUTHOR
+
+ Tomas Doran (t0m) <bobtfish at bobtfish.net>

Added: trunk/examples/CatalystAdvent/root/2009/pen/media_delivery.pod
===================================================================
--- trunk/examples/CatalystAdvent/root/2009/pen/media_delivery.pod	                        (rev 0)
+++ trunk/examples/CatalystAdvent/root/2009/pen/media_delivery.pod	2009-12-14 22:23:58 UTC (rev 12371)
@@ -0,0 +1,28 @@
+
+=head1 Delivering static media with Catalyst
+
+=head2 Why?
+
+One use uris
+
+Time limited uris
+
+Too much media to fix on one physical machine
+
+=head2 How
+
+->serve_static_file is a great start, but.
+
+X-Accel-Redirect
+
+X-Sendfile
+
+=head2 Example
+
+Example web server config for static
+
+Example web server config for reproxying
+
+Example code snippet.
+
+




More information about the Catalyst-commits mailing list