Erik Zaadi

Tales of the CI guy

Install Script to Run asp.net Mvc 3 With Razor on Nginx at a OpenSuse Server

| Comments

Well, the title kind of says it all

For the git lovers out there clone https://github.com/erikzaadi/MonoRazorScripts.git , or simply download the zip from https://github.com/erikzaadi/MonoRazorScripts/zipball/master and unzip it.

Then run :

sudo sh ./install.sh

And voila, a couple of minutes later, you should be able to access your server via http to get some GUID-alicios Razor driven content!

[](http://erikzaadi.com/wp-content/uploads/2011/03/Image_thumb1.png)

To deploy your application:

  1. Delete the directory “/srv/www/monodocs/default”

  2. Copy your application to “/srv/www/monodocs/” and rename your folder name to “default”

  3. Copy the file “Default.aspx” into the new “default” folder

  4. Copy the dll files in the folder “/srv/www/monodocs/libs” into the bin folder of your application

  5. If you have the file “Microsoft.Web.Infrastructure.dll” in your bin folder, delete it

The source is at : https://github.com/erikzaadi/MonoRazorScripts

If you need the Amazon EC2 AMI id’s for Opensuse, have a look here : http://susegallery.com/a/n0rKOx/opensuse-113-ami

Enjoy!

Comments