Hi all Mason experts,
I want run more different applications under STARMAN, so my app.psgi
will looks like:
....
builder {
enable "Plack::Middleware::Static", path => qr{^/static/}, root
=>.... #one for all 4 apps
mount "/app1" => builder { #non mason app
enable ...#some middlewares
$app1
};
mount "/app2/something" => builder { #non mason app
enable ...#some middlewares
$app2
}
mount "/poet1" => builder {
# poet app #1 middlewares
enable "Plack::Middleware::Session",.....
$poet1;
}
mount "/poet2" => builder {
#poet app2
enable "Plack::Middleware::Session",.....
$poet2;
}
}
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?
thank you in advance
ak
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users