Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Plack/PSGI Application Deployment

by expandstudios (Acolyte)
on May 23, 2016 at 01:45 UTC ( [id://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?
Username:
Password:

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
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-25 13:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found