O'Reilly logo

Instant Nancy Web Development by Christian Horsdal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hosting Nancy on the Cloud (Intermediate)

In this recipe, we take a look at how to host the application we have written so far on cloud services, such as on Windows Azure and AppHarbor. Both of these have PaaS solutions for running ASP.NET applications on their cloud infrastructure. In both cases, the application we've written so far is capable of running except for two things mentioned as follows:

  • The connection string for the data store has to be moved out of the code and into web.config. Hardcoding, as I have done so far, is a really bad idea, so moving the connection string to the web.config file is good anyway.
  • Avoid running the integration tests during the cloud build.

Getting ready

As always, we build on the code from the previous recipe, so ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required