[Mono-list] Deploying with mod-mono-server

Morten Krog mk@i3m.dk
Wed, 06 Oct 2004 00:12:32 +0200


On Tue, 2004-10-05 at 14:09, Gonzalo Paniagua Javier wrote:
> On Mon, 2004-10-04 at 23:50, Morten Krog wrote:
> > Two questions regarding asp.net hosting with mono under apache:
> > 
> > 1) is there a way to precompile your asp.net project or in another way
> > reduce the _huge_ wait one has to endure when a solution is deployed and
> > the site is accessed for the first time?
> 
> Try to use codebehind as much as possible and when you deploy, run a
> recursive wget on your site ;-). For ASP.NET 2.0, this will be possible,
> but that's far away from today.

We use codebehind as much as possible. A recursive wget will, I realise,
get our service primed for the first user asap, but in the case where we
are considering using mono we estimate several requests a second so a
customer will most likely get there first -- and they will get to
experience the 5-15 seconds delay before the service is ready.

I assume that mono compiles the asmx-files into a class that goes
somewhere I havn't found yet. It would be okay for me to build a
deployment site where we could force a page-by-page compilation and then
deploy the generated classes/dll's to the production site.

But I guess that is not possible either since no one has suggested it...

Regards,
Morten Krog