Development and Testing

To create a new Catalyst application, using the infamous name MyApp, we type:

$ catalyst.pl MyApp
created "MyApp"
created "MyApp/script"
created "MyApp/lib"
created "MyApp/root"
...
created "MyApp/script/myapp_fastcgi.pl"
created "MyApp/script/myapp_server.pl"
created "MyApp/script/myapp_test.pl"
created "MyApp/script/myapp_create.pl"
$

This is the point you can start implementing whatever nice application you want.

Deployment

After some time you surely want to make your application accessible to others.

As OpenBSD already comes with an httpd capable to handle all of this you only
need to configure it appropriately.
Using FastCGI is quite an efficient option, so we should install mod_fastcgi,
the FCGI module and FCGI::ProcManager:

$ sudo pkg_add mod_fastcgi fcgi p5-FCGI-ProcManager
mod_fastcgi-2.4.2p2: complete
fcgi-2.4.0p3: complete
p5-FCGI-ProcManager-0.18: complete
--- mod_fastcgi-2.4.2p2 -------------------
To finish the install of mod_fastcgi, you need
to enable the module using the following command
/usr/local/sbin/mod_fastcgi-enable
If you already have Apache running on your machine,
you should not use "apachectl restart" - instead,
you should fully stop and then restart the server.
$