Can I run the MVC and WCF Web Api application on the same AppHarbor site?

We have a solution with this structure.

  • OurApp.Web (mvc 3 project with controllers, views)
  • OurApp.Api (mvc 3 project with wcf web api classes)
  • OurApp.Domain (objects, repositories, unit of work, etc.)
  • OurApp.Tests (tests)

We want to use dns structured as follows:

http://www.ourapp.com points to OurApp.Web

http://api.ourapp.com points to OurApp.Api

We want to host on AppHarbor .

How can we do this?

+8
asp.net-mvc wcf appharbor wcf-web-api
source share
1 answer

AppHarbor currently only supports deploying a single application from any repository. One option would be to dump the API into a web project. I did this for a WCF service without a web service here .

Another option is to support two AppHarbor applications and use the solution files according to which application you want to deploy for this application. That is, OurApp.Web.sln contains a web project and any supporting projects, and OurApp.Api.sln refers to the API project and any supporting projects. Learn more about the AppHarbor Solution File Agreement .

(disclaimer, I am co-founder of AppHarbor)

+12
source share

All Articles