Search code examples
perlubuntudebianpackagingcatalyst

How can I deploy my Catalyst application as a debian package (or suitable alternative)?


After testing my Catalyst application and deciding to deploy it I would like to package it up so I can easily pull it in on the staging and live servers, manage dependencies and easily roll-back via the flexibility of package versioning. As my production OS is Ubuntu I figured packaging it as a deb package would make most sense.

I am predicting I will have to create a second package of all my perl module dependencies as many are not provided by my distribution, or package them independently - though that may be a lot of work.

Does anyone have any experience of doing this - or a sane, similar alternative?


Solution

  • To build your own Debian packages out of CPAN packages:

    • Install Debian helper scripts

      sudo apt-get install dh-make-perl

    • Download MODULE from CPAN and build Debian package

      cpan2deb MODULE