expandstudios has asked for the wisdom of the Perl Monks concerning the following question:

Hey guys, I am in the process of porting an old CGI based web app to PSGI.

I am just seeking some clarification about how to best configure my environment for hot deployment / CI.

Environment (so far)

Here is what I want to be able to do:

  1. Have the server start on boot (CentOS Service possibly?)
  2. Deploy code to host (most likely using whiskey_disk or possibly git hooks)
  3. Gracefully restart server

Where I am really looking for guidance is how to best configure the server/application on the CentOS machine so that it will start on boot and can easily be managed (start/stop/graceful restart).

Once I have that in place I can automate my deployment fairly easily using various tools.

I just can't get my head around how to use Server::Starter properly in this instance.

Thanks in advance! Russ