X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial.pod;h=ef0db085b0d2ae9f63b3382ed6c78c2e002ad750;hp=45d057cb2949694499a6a1b1291c370b0ab5a44e;hb=34d28dfd33574ce30aca69fb8700b61111d97b92;hpb=587d5860a776cd4a49c2f51984e710f62c881097 diff --git a/lib/Catalyst/Manual/Tutorial.pod b/lib/Catalyst/Manual/Tutorial.pod index 45d057c..ef0db08 100644 --- a/lib/Catalyst/Manual/Tutorial.pod +++ b/lib/Catalyst/Manual/Tutorial.pod @@ -15,7 +15,7 @@ is to install the Catalyst bundle from CPAN: This will retrieve Catalyst and a number of useful extensions and install them for you. This process might not be totally painless -though, and you might want to look at CatInABox +though, and you might want to look at CatInABox at L, especially if you are on a system that lacks a compiler. @@ -25,12 +25,12 @@ on a system that lacks a compiler. Catalyst includes a helper script, C, that will set up a skeleton application for you: - $ catalyst MyApp + $ catalyst.pl tutorial - created "MyApp" - created "MyApp/script" + created "tutorial" + created "tutorial/script" ... output snipped - created "MyApp/script/myapp_create.pl" + created "tutorial/script/tutorial_create.pl" This creates the directory structure, populated with skeleton files. @@ -40,25 +40,25 @@ files. You can test out your new application by running the server script that Catalyst provides: - $ cd MyApp - $ script/myapp_server.pl + $ cd tutorial + $ script/tutorial_server.pl - [...] [catalyst] [debug] Debug messages enabled - [...] [catalyst] [debug] Loaded plugins: + [debug] Debug messages enabled + [debug] Loaded plugins: .------------------------------------------------------------------------------. | Catalyst::Plugin::Static::Simple | '------------------------------------------------------------------------------' - [...] [catalyst] [debug] Loaded dispatcher "Catalyst::Dispatcher" - [...] [catalyst] [debug] Loaded engine "Catalyst::Engine::HTTP" - [...] [catalyst] [debug] Found home "/home/users/me/MyApp" - [...] [catalyst] [debug] Loaded Private actions: + [debug] Loaded dispatcher "Catalyst::Dispatcher" + [debug] Loaded engine "Catalyst::Engine::HTTP" + [debug] Found home "/home/users/me/tutorial" + [debug] Loaded Private actions: .--------------------------------------+---------------------------------------. | Private | Class | +--------------------------------------+---------------------------------------+ - | /default | MyApp | + | /default | tutorial | '--------------------------------------+---------------------------------------' - [...] [catalyst] [info] MyApp powered by Catalyst 5.5 + [...] [catalyst] [info] tutorial powered by Catalyst 5.67 You can connect to your server at http://localhost:3000 (Note that each line logged by Catalyst begins with a timestamp, which has @@ -80,23 +80,21 @@ and hit return twice): Content-Length: 5525 Content-Type: text/html; charset=utf-8 Status: 200 - X-Catalyst: 5.5 + X-Catalyst: 5.67 [...] Connection closed by foreign host. $ -You can see the full welcome message by visting +You can see the full welcome message by visiting http://localhost:3000/ with your browser. More trace messages will appear in the original terminal window: - [...] [catalyst] [debug] ********************************** - [...] [catalyst] [debug] * Request 1 (0.063/s) [2148] - [...] [catalyst] [debug] ********************************** - [...] [catalyst] [debug] Arguments are "" - [...] [catalyst] [debug] "GET" request for "" from localhost - [...] [catalyst] [info] Request took 0.046883s (21.330/s) + [debug] *** Request 1 (0.063/s) [2148] + [debug] Arguments are "" + [debug] "GET" request for "/" from localhost + [info] Request took 0.046883s (21.330/s) .------------------------------------------------------------------+-----------. | Action | Time | +------------------------------------------------------------------+-----------+ @@ -106,11 +104,11 @@ More trace messages will appear in the original terminal window: The server will continue running until you interrupt it. The application can also be tested from the command line using the generated -helper script, C