Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Plack/PSGI Application Deployment

by expandstudios (Acolyte)
on May 23, 2016 at 01:45 UTC ( #1163825=perlquestion: print w/replies, xml ) Need Help??

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)

  • CentOS 6.7
  • Perlbrew
  • PSGI WebApp
  • Starman
  • Server::Starter (??)

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 (Parson) 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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1163825]
Approved by beech
Front-paged by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2023-06-08 23:13 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (35 votes). Check out past polls.