Search code examples
perlinstallationdbix-classmojolicious

How do I build an installer for my perl application with DB?


I've been searching for a while and I cannot find an easy solution for building an install package on linux for a perl application I've built. My application is a mojolicious application and I am using DBIx::Schema. I need to accomplish the following;

  • import my DB schema into a database
  • check for and install any missing perl modules
  • copy my actual application to a location.
  • possibly set my application to run as a service.

This is rather trival on windows, but I can't seem to find a clean solution to do this on Linux. Is the easiest approach to just write another perlscript to do the install?

thanks.


Solution

  • Try to use Rex or checkout this SO question Is there a Perl or Lua alternative to Capistrano?.