Finally,
there is the script
directory that contains the scripts needed to run, test, and modify your application.
myapp_server.pl
is the development server; a self-contained HTTP server that you can use to run your application while you're developing it.
myapp_cgi.pl
is a CGI script for deploying your application with a web server that cannot use mod_perl or FastCGI. It's very slow, so use it only as a last resort.
The last server is called myapp_fastcgi.pl
, which allows you to run your application as a FastCGI server. In Chapter 9, we'll see how to use these scripts to run our application in a production environment.
There are also two utility scripts in this directory. You can use the myapp_test.pl
script to test an action, without opening a web browser. For example, you can print the source of the welcome page by running the following command line:
$ perl script/myapp_test.pl /
The last script is myapp_create.pl
, which is a version of catalyst.pl
that's customized...