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

Replies are listed 'Best First'.
Re: Plack/PSGI Application Deployment
by tangent (Vicar) on May 23, 2016 at 10:19 UTC
Re: Plack/PSGI Application Deployment
by Your Mother (Archbishop) on May 23, 2016 at 12:00 UTC

    I encourage you to consider uwsgi over Starman. It has deeper features, better performance, and is more robust. :P

Re: Plack/PSGI Application Deployment
by $h4X4_|=73}{ (Monk) on May 23, 2016 at 01:53 UTC
    run the start/stop script through ssh.