Service Stack, with F# on Linux
A solution template to quickly help get up and running with Service Stack using F#. Code is built using FAKE and deployed to a local Ubuntu Server via Vagrant - where it runs on mono fastcgi and nginx...
Phew!
Instructions
You'll need to ensure that you have Oracle Virtual Box and Vagrant installed first. Plus obviously some .NET and F# development tools/libraries.
- Clone this repo, and navigate to the working directory
- Ensure that the puppet modules are brought in (through git submodules):
git submodule init
and thengit submodule update
. - From a command line, run
fake build
- this will install any dependencies using nuget and then build the service and copy it into thewww/
directory. - From a command line, run
vagrant up
- this will provision you a local Ubuntu Server and use the Puppet scripts to set everything up. Yourwww/
directory is shared with the new virtual machine, which is where the application runs from. - Navigate to
localhost:8080
in your browser to test.
In theory, everything will work a treat (works on my machine, haha).
Branches
There are a few branches of this repository that contain some changes to this, for example: the with_mysql
contains some extra configuration to spin up a mysql database as part of the puppet configuration.
Thanks
- pipe-devnull for some help with provisioning mono fastcgi with the correct user.