I've seen this: Zero downtime uploads / Rollback in IIS, but for a small site, ARR seems like overkill. I'm wondering if it'd work to have a web.config like this
<?xml version="1.0" encoding="UTF-8"?>
<configuration><system.webServer><rewrite><rules>
<rule name="Rewrite to current production version">
<match url="(.*)" /><action type="Rewrite"
url="production-version-0/{R:1}" />
</rule></rules></rewrite></system.webServer>
</configuration>
To deploy, drop in the directory production-version-1
, and then over-write web.config so that it points to the new version. This is a PHP site. Will I regret doing it this way?