On Jun 12, 2012, at 7:07 AM, Pedro Melo wrote: > Hi, > > On Tue, Jun 12, 2012 at 12:50 PM, A Kobame <kobam...@gmail.com> wrote: >> I want run more different applications under STARMAN, so my app.psgi >> will looks like: >> > [...] >> >> the question is: >> >> how to correctly configure the two poet apps, when >> - they are in separate trees (different dirs, different components, >> different config key-values, but >> - one Startman (plackup for development) but later for production >> want Starman >> - one "/static" >> >> want use poet - not pure Mason (because maybe someday will move the >> apps into separate computers, so want use $poet's config YAML and >> so..) >> >> Any recommendation? > > AFAIK, you can't. There can be only one Poet app per perl interpreter. > ... > Eventually I'll have to tackle this, but I'm not sure if Jonathan is > willing to accept a pull request on this. So be prepared to keep your > private Poet tree if you really cannot have multiple starman's.
Yes, right now there are a number of singletons in Poet: the environment, the configuration, and the Mason interpreter. This is easiest and most convenient in the common case, but obviously there's more than one person who would like multiple Poet object sets per process... Unfortunately I'm not in this situation right now, so the solution is likely to come from a motivated external party. Pedro, I'd certainly handle a pull request that solves this if it doesn't break how things work for current folks. :) Jon ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users