Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 714
cubabit Avatar asked Feb 11 '11 09:02

cubabit


1 Answers

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

like image 118
Alan Haggai Alavi Avatar answered Oct 04 '22 02:10

Alan Haggai Alavi