Reputation: 1
I arrived at the below mentioned question
Host ServiceStack, MVC3 or MVC4 on mono or windows and what is the state of mono
The answer was that: "ServiceStack.net has always run on Linux/Mono" which is not what I want to know:
I would like to know HOW to deploy it. There is loads of examples on how to create your service stack application, but not much on how to deploy it.
My situation is as follows: I have downloaded MS VS 2013 (The express version for web).
I would like to write a service stack service in it (have achieved that already with the helloworld examples on the web) and then deploy this code to a Ubuntu server 12.4, running mono on Apache.
Please would anyone explain how to do that (step-wise please). Any pointers to pit falls would be welcome.
Thanks.
Upvotes: 0
Views: 415
Reputation: 1372
There is a documentation how to run ServiceStack on mono https://github.com/ServiceStack/ServiceStack/wiki/Mono
By the way, if you're going to change apache to nginx as your front-end it's better to use HyperFastCgi instead of mono-server-fastcgi. HyperFastCgi does not leak memory and runs much faster.
The issues with standard mono-server-fastcgi are described here
To install HyperFastCgi on mono machine, you should get the sources and compile them:
git clone https://github.com/xplicit/HyperFastCgi.git
cd HyperFastCgi
#if you have got mono installed not in /usr/bin/mono, change the prefix
#to the directory, where mono is located (without 'bin' part)
./autogen.sh --prefix=/usr
make
sudo make install
Upvotes: 1