Skip to content

Instantly share code, notes, and snippets.

@cat-haines
Created September 25, 2012 01:36
Show Gist options
  • Save cat-haines/3779481 to your computer and use it in GitHub Desktop.
Save cat-haines/3779481 to your computer and use it in GitHub Desktop.
This goes in your API folder of Nancy + AppHarbor project - you DO NOT add anything to any other web.configs in the project to make it work
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
<customErrors mode="Off" />
<httpHandlers>
<add verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*"/>
</httpHandlers>
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<validation validateIntegratedModeConfiguration="false"/>
<handlers>
<add name="Nancy" verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*"/>
</handlers>
</system.webServer>
</configuration>
@cat-haines
Copy link
Author

Whenever I try making a new AppHarbor project using Nancy I always forget what I need to do with my web.configs. Use the above web.config in the API folder.

DO NOT DO ANYTHING ELSE.

SERIOUSLY.. THIS IS ALL YOU NEED TO DO. YOU WILL MESS EVERYTHING UP IF YOU TRY TO DO ANYTHING ELSE.

STOP IT.

@Schonhoffer
Copy link

Sweet gist bra

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment