Created
October 16, 2011 13:43
-
-
Save slavikdev/1290887 to your computer and use it in GitHub Desktop.
web.config, helicon zoo, thin, rails 3.1
This file contains hidden or 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" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<heliconZoo> | |
<application name="rails.project.x86" > | |
<environmentVariables> | |
<add name="DEPLOY_FILE" value="deploy.rb" /> | |
<add name="DEPLOY_LOG" value="log\zoo-deploy.log" /> | |
<!-- By default we run Rails in production mode --> | |
<!-- <add name="RACK_ENV" value="development" /> --> | |
<!-- If deployment is too long this doesn't let worker to die --> | |
<add name="WORKER_REQUEST_TIMEOUT" value="1000" /> | |
</environmentVariables> | |
</application> | |
<application name="rails.project.x64" > | |
<environmentVariables> | |
<add name="DEPLOY_FILE" value="deploy.rb" /> | |
<add name="DEPLOY_LOG" value="log\zoo-deploy.log" /> | |
<!-- By default we run Rails in production mode --> | |
<!-- <add name="RACK_ENV" value="development" /> --> | |
<!-- If deployment is too long this doesn't let worker to die --> | |
<add name="WORKER_REQUEST_TIMEOUT" value="1000" /> | |
</environmentVariables> | |
</application> | |
</heliconZoo> | |
<handlers> | |
<add name="rails.project.x86" scriptProcessor="thin.http" path="*" verb="*" modules="HeliconZoo_x86" preCondition="bitness32" resourceType="Unspecified" requireAccess="Script" /> | |
<add name="rails.project.x64" scriptProcessor="thin.http" path="*" verb="*" modules="HeliconZoo_x64" preCondition="bitness64" resourceType="Unspecified" requireAccess="Script" /> | |
</handlers> | |
<!-- Send static files through IIS --> | |
<rewrite> | |
<rules> | |
<rule name="Avoid Static Files" stopProcessing="true"> | |
<match url="^(?!public)(.*)$" ignoreCase="false" /> | |
<conditions logicalGrouping="MatchAll" trackAllCaptures="true"> | |
<add input="{APPL_PHYSICAL_PATH}" pattern="(.*)" ignoreCase="false" /> | |
<add input="{C:1}public\{R:1}" matchType="IsFile" /> | |
</conditions> | |
<action type="Rewrite" url="public/{R:1}" /> | |
</rule> | |
</rules> | |
</rewrite> | |
</system.webServer> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment