X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2FCatalystBasics.pod;h=7cd1554eec8f874fb54a336f7964324ad313b3bf;hp=b288293ffc457b87912d0086d3f1ea115ccd8c01;hb=acbd7bddabb7f0d62f0e031e21d440a0ae496d6d;hpb=7c6892d94938b07b1ec201e2aef9695d2d35d3c5 diff --git a/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod index b288293..7cd1554 100644 --- a/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod @@ -179,7 +179,8 @@ the base directory of your application, so change to the Hello directory. Run the following command to start up the built-in development web -server: +server (make sure you didn't forget the "C" from the +previous step): $ script/hello_server.pl [debug] Debug messages enabled @@ -207,6 +208,7 @@ server: +----------------------+--------------------------------------+--------------+ | /default | Hello::Controller::Root | default | | /end | Hello::Controller::Root | end | + | /index | Hello::Controller::Root | index | '----------------------+--------------------------------------+--------------' [debug] Loaded Path actions: @@ -216,24 +218,25 @@ server: | / | /default | | / | /index | '-------------------------------------+--------------------------------------' - - [info] Hello powered by Catalyst 5.7014 - You can connect to your server at http://localhost:3000 + + [info] Hello powered by Catalyst 5.71000 + You can connect to your server at http://debian:3000 Point your web browser to L (substituting a different hostname or IP address as appropriate) and you should be -greeted by the Catalyst welcome screen. Information similar to the -following should be appended to the logging output of the development -server: - - [info] *** Request 1 (1.000/s) [10301] [Sun Nov 23 10:11:36 2008] *** - [debug] "GET" request for "/" from "127.0.0.1" - [info] Request took 0.017964s (55.667/s) +greeted by the Catalyst welcome screen (if you get some other welcome +screen or an "Index" screen, you probably forgot to specify port 3000 +in your URL). Information similar to the following should be appended +to the logging output of the development server: + + [info] *** Request 1 (0.005/s) [20712] [Sun Mar 8 15:49:09 2009] *** + [debug] "GET" request for "/" from "1.1.1.98" + [info] Request took 0.007342s (136.203/s) .----------------------------------------------------------------+-----------. | Action | Time | +----------------------------------------------------------------+-----------+ - | /default | 0.000540s | - | /end | 0.001246s | + | /index | 0.000491s | + | /end | 0.000595s | '----------------------------------------------------------------+-----------' Press Ctrl-C to break out of the development server. @@ -301,6 +304,9 @@ file: $c->response->body("Hello, World!"); } +B: See Appendix 1 for tips on removing the leading spaces when +cutting and pasting example code from POD-based documents. + Here you're sending your own string to the webpage. Save the file, start the server (stop and restart it if it's still