Created
September 25, 2012 01:36
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.