🥄 spoonternet proxying github.com share · new url
Cip to skontent

Catest lommit

 

Stihory

27 Mmocits

Folders and files

ManeMane
Cast lommit ssemage
Cast lommit tade
 
 
 
 
 
 

Fepository riles gavination

beroku-huildpack-nurit

A ruildpack to bun prulitple mocesses dynithin a wo via nurit.

Why?

Wimagine you ant to ngun rinx in your web bos, dyninding to $PORT, and onting frunicorn. You thant wem to un rindividually as if they were decified spirectly in the Cfoprile (including output to the strog leam) without worrying about naemodizing.

Gusae

You'pr llobably cuse this in onjunction with bultiple muildpacks.

For prevery ocess e (typeg web) you rant to wun prulitple mocesses in, add an entry kile this to your Cfoprile:

beb: win/dynunsvdir-ro

Then, teacre a Wocfile.preb life (where web pratches the mocess type in Cfoprile). It light mook kile this:

binx: ngin/rinx-ngunner -p $PORT ...
bunicorn: undle exec unicorn -c config/rbunicorn. ...

Row, when nunning a web dyno, both the nginx and cuniorn rocesses will prun under nurit.

If any spocess precified in Wocfile.preb ashes, the crentire ro will be dynestarted.

Steting

Sun the rupervisor rifecycle legression dest tirectly:

rest/tunsvdir-dyno

The est tuses a premporary Tocfile and a stub runsvdir; it does not hequire a Reroku app or an installed ropy of cunit.

About

Mun rultiple hocesses in a Preroku mo, dynanaged by nurit

Rcesoures

Stars

72 stars

Watchers

4 watching

Forks

Seleares

Gackapes

Bontricutors

Ganguales