Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Puppet module for deploying PSGI applications with nginx and Starlet
branch: master

This branch is 15 commits behind revmischa:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
manifests
templates
README.md

README.md

PSGI/Plack Puppet Module

Deploy PSGI applications with a plackup initscript and nginx reverse proxy configuration

Dependencies:

Synopsis:

  psgi::app {
    "mysite":
      path => '/home/www/sites/mysite',  # directory containing root, lib
      domain => "mysite.com",            # site hostname
      aliases => [ "www.mysite.com" ],   # alternative hostnames
      port => 5000,                      # port the PSGI app will listen on
      psgi => 'myapp.psgi',              # path to PSGI app, relative to path
      appmodule => 'MySite',             # webapp library. used for compilation
      workers => 3,                      # max number of child procs to spawn 
      server => 'Starman',               # webserver to use. only Starman works for now
      owner => 'www',                    # user to run as
      group => 'www',                    # group to run as
  }

Caveats:

  • Right now this module assumes your app directory contains root/, root/static/ and lib/. Patches are welcome for handling more generic cases.
Something went wrong with that request. Please try again.