Re: [Mason] Running multiple Mason scripts

2012-07-11 Thread Jonathan Swartz
Hi Marc - just working through email backlog and noticed that this went 
unanswered.

First of all, as you may have noticed, all the psgi/plack Mason support has 
moved to Poet, so I'd suggest you look there if you are still pursuing this.

If you have several different sites, I think it is cleanest to have a separate 
Poet environment for each of them, with its own app.psgi and Mason component 
root. You can run them on different ports and have an nginx or similar running 
in front that maps domain names to different ports. This is what I do on my own 
servers.

HTH,
Jon

On May 5, 2012, at 10:06 AM, sono...@fannullone.us wrote:

> Hello all,
> 
>   I'm new to Mason and just installed the demo script from here:
> 
> https://github.com/jonswar/perl-mason/tree/master/eg/blog
> 
>   From the README, I'm running it via  $ plackup app.psgi
> 
>   I'm curious, though, how I would run multiple Mason scripts?  What if I 
> have, say, a shopping cart, a blog, and something else?  Would I run them on 
> different ports?
> 
>   Also, how would I run them on a shared server?  Can they just be 
> uploaded to the cgi-bin directory and run like plain vanilla Perl scripts?  I 
> know that I could run them under CGI, but I read where it's very slow doing 
> it that way.
> 
>   If someone could point me to something to read, I'd appreciate it.
> 
> Thanks,
> Marc
> --
> 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


--
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


[Mason] Running multiple Mason scripts

2012-05-05 Thread sono-io
Hello all,

I'm new to Mason and just installed the demo script from here:

https://github.com/jonswar/perl-mason/tree/master/eg/blog

From the README, I'm running it via  $ plackup app.psgi

I'm curious, though, how I would run multiple Mason scripts?  What if I 
have, say, a shopping cart, a blog, and something else?  Would I run them on 
different ports?

Also, how would I run them on a shared server?  Can they just be 
uploaded to the cgi-bin directory and run like plain vanilla Perl scripts?  I 
know that I could run them under CGI, but I read where it's very slow doing it 
that way.

If someone could point me to something to read, I'd appreciate it.

Thanks,
Marc
--
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