X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial.pod;h=db478f3991862e0806474f6b12e15cc261b39ece;hb=ad9bffa7e6396bd7a917b60ca114dc8d7761ffd0;hp=45d057cb2949694499a6a1b1291c370b0ab5a44e;hpb=587d5860a776cd4a49c2f51984e710f62c881097;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Manual/Tutorial.pod b/lib/Catalyst/Manual/Tutorial.pod index 45d057c..db478f3 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,8 +40,8 @@ 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: @@ -50,15 +50,15 @@ Catalyst provides: '------------------------------------------------------------------------------' [...] [catalyst] [debug] Loaded dispatcher "Catalyst::Dispatcher" [...] [catalyst] [debug] Loaded engine "Catalyst::Engine::HTTP" - [...] [catalyst] [debug] Found home "/home/users/me/MyApp" + [...] [catalyst] [debug] Found home "/home/users/me/tutorial" [...] [catalyst] [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,13 +80,13 @@ 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: @@ -106,11 +106,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