How to deploy a Mono application?

802 views Asked by At

We want to deploy a MVC5 application which is build on Mono to a Debian server. This server comes from a third party who has a larger web server that can redirect requests via proxies.

In the past I managed to run a small Ruby on Rails server "locally" on the server and have the hosting provider redirect to the ports. Is it possible to do the same thing with Mono?

I heard about the K runtime for ASP.NET vNext. Can the K runtime also be used for ASP.NET MVC5 applications? And if so how?

Or is it better to ask if the hosting provider can install the mod_mono package?

Or perhaps I am missing something obvious. I hope you can explain me how to deploy an ASP.NET MVC5 application on Mono to a Linux server.

1

There are 1 answers

8
user2609980 On BEST ANSWER

Ended up using lighttpd with the mod_mono module. Came down to copying the files to the server, run a web server locally on the server (just like local xsp4 only then production ready) and configure lighttpd to point a proxy towards it. Similar idea as Mono and nginx as described below.