Created
September 24, 2015 03:38
-
-
Save stevewithington/04d31c5f2e1fe23d88e7 to your computer and use it in GitHub Desktop.
Mura CMS: How the Auto Updater works
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
<cfoutput> | |
<cfscript> | |
updateVersion = application.autoUpdater.getProductionVersion('SiteID'); // this would be done for each SiteID (e.g., default, etc.) | |
currentVersion = application.autoUpdater.getCurrentVersion(); | |
readyForUpdate = updateVersion > currentVersion; | |
</cfscript> | |
<p>Mura's AutoUpdater works simply by comparing the <strong>updateVersion</strong> with the <strong>currentVersion</strong>. If the <strong>updateVersion</strong> is greater than the <strong>currentVersion</strong>, then it's ready for an update. This would be done on a site-by-site basis, and the updates differ between <strong>Core</strong> and <strong>Site</strong> versions.</p> | |
<ul> | |
<li>updateVersion: #updateVersion#</li> | |
<li>currentVersion: #currentVersion#</li> | |
<li>readyForUpdate? #YesNoFormat(readyForUpdate)#</li> | |
</ul> | |
<p>However, if the <strong>currentVersion</strong> equals <strong>1</strong>, chances are, this instance of Mura is tied to the Github repository and probably should be updated via Git instead.</p> | |
</cfoutput> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment