Mono
I'm running Ubuntu 12.10 on my server and am using Mono 2.10.8.1 which was installed from the package repository using apt-getsudo apt-get install mono-xsp4
Service Stack
First I knocked a quick service stack application and created a status endpoint. This should work for any application that's mono compatible but I haven't tried with anything else. Once you've got an application you'll want to be deploying it.Capistrano
You need to make sure you have capistrano and ruby gems installed first. I'm running this from my Ubuntu development machine and have not tried deploying from a windows machine to 'nix machine.Install ruby and ruby gems
sudo apt-get install ruby1.9.3 rubygems
Install bundle
sudo gem install bundle capistrano
Add a Gemfile and insert the following
source :rubygems gem "capistrano-mono-deploy"
Call bundle to update the gems
bundle
Capify your project
capify .
Edit your config/deploy.rb to be something like this:
require "capistrano/mono-deploy"
ssh_options[:keys] = %w('~/.ssh/*.pub')
set :application, "service stack deployed with capistrano running on mono"
set :deploy_to, "~/www"
role :app, "the.server.com"
Then from the root of your project callcap deploy
BOOM your application is deployed!
Assuming you have your ssh keys setup for the server, either that or you had to enter a password.Now I wouldn't recommend using xsp as your weapon of choice when it comes to hosting, but it's easy to get started with and you can swap it out for other things once you get up and running.
You should take some time to read up about capistrano and how it works. It's a really powerful tool that has loads of options available for you to play with. The capistrano-mono-deploy gem currently deploys the first directory it finds with a web.config located in it.
Feedback appreciated, particularly on my terrible ruby code!