New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PSGI ENV keys for Application and Context #52
Comments
Basically I'd like to rethink the relationship between PSGI $env and $ctx |
@jjn1056 In the meantime, is there an alternate way to accomplish this? And would you mind pointing me in the right direction? I would very much like to have two Catalyst apps running in a single psgi environment to have access to one another. |
When you say, "two Catalyst apps running in a single psgi environment" that In the first case it might be better to have a common model that both On Wed, Nov 16, 2016 at 4:44 PM, ryan-lang notifications@github.com wrote:
|
It sounds like maybe I'm barking up the wrong tree... My goal is to break up a single large application into several smaller ones that can be run either independently or embedded in a wrapper/parent app. Sharing models between parent & child is not a huge priority, because I want my child apps to be pretty independent, but allowing the parent to access the child's dispatcher (so I can do stuff like uri_for) is pretty important. My plan was to find a way to store a reference to the child(ren) in the parent somehow. But given the two options you outlined (up until now I've been using Plack::Builder in the way you described), I'm starting to think this is not something that can be reasonably accomplished? |
You can use a catalyst application to dispatch to another catalyst Basic example http://www.catalystframework.org/calendar/2014/3 (that http://www.catalystframework.org/calendar/2014/4 as welll (for sharing the Not sure if that helps. -jnap On Wed, Nov 16, 2016 at 5:35 PM, ryan-lang notifications@github.com wrote:
|
Thanks for the guidance - much appreciated! |
Allow one to get at a containing Catalyst application and context from the PSGI env, so that when you are using catalyst to delegate to other web frameworks, that child application can access stuff like the parent's models.
The text was updated successfully, but these errors were encountered: