Hoth was created by Aaron Greenlee http://aarongreenlee.com/share/hoth-coldfusion-errors-tracking-reporting
FarCry plugin created by Sean Coyne (http://www.n42designs.com)
This work is licensed under a Creative Commons Attribution-Share-Alike 3.0 Unported License (http://creativecommons.org/licenses/by-sa/3.0/)
- ColdFusion 9 or Railo 3.2 (Hoth uses cfscript CFCs and other CF9 functionality, not sure about the Railo requirement, but this has been tested on Railo 3.2 and ColdFusion 9.0.1)
- FarCry 6.0.9 or higher
02/13/2013: Upgrade Hoth
01/26/2012: FarCry core bug FC-2538 is now fixed. If you are running 6.0.18, 6.1.3, or the latest p600, p610 or trunk branches you no longer need to perform an update app after configuring Hoth.
08/31/2011: Move config setup to the config's process method. When FarCry core bug FC-2538 is fixed, this will remove the need for the second update app when you initially install and configure Hoth. For now, the only time we can reinitialize Hoth is on app startup and so, the second update app is still required (and will be required whenever you modify the Hoth configuration).
06/27/2011: Moved Hoth to a git submodule. To pull down a copy of Hoth when cloning, after the clone is complete run "git submodule init" then "git submodule update".
04/06/2011: Updated Hoth to latest version from GitHub. Allows configuration of the logFileIsRelative setting. If set to false, you can specify a path a full path to the log file directory. Be sure to update your FarCry config!
03/11/2011: Updated Hoth to latest version from GitHub. Plugin now uses Hoth's built in reporting UI rather than a custom version. This should allow for less maintenance as Hoth is updated going forward.
02/17/2011: Initial version. This was created using the initial release of Hoth. Aaron plans to make some updates to the reporting features which may break the functionality here so use caution if you manually upgrade the copy of Hoth included with the plugin.
From your /farcry/plugins directory clone from github by executing:
git clone git://github.com/seancoyne/farcryhoth.git
Change directories to the farcryhoth directory
Pull down the Hoth submodule by executing the following (these commands will pull down Hoth to the /farcry/plugins/farcryhoth/packages/custom/hoth directory):
git submodule init git submodule update
- If you downloaded the zip or tarball, you will need a copy of Hoth which you can find at https://github.com/aarongreenlee/Hoth.
- Extract the plugin archive file to /farcry/plugins/farcryhoth
- Extract the Hoth archive to /farcry/plugins/farcryhoth/packages/custom/hoth
- Add farcryhoth to the list of plugins in your farcry constructor
Create a webserver mapping so that /farcryhoth maps to the /farcry/plugins/farcryhoth/www directory (or copy the www directory to a "farcryhoth" directory under your project's www directory).
Alias /farcryhoth "/Users/username/Sites/farcry/plugins/farcryhoth/www"
Copy the following code to your farcryConstructor.cfm anywhere after
<cfset this.mappings = structnew() />(note the capital "H" in Hoth for case-sensitive file systems):
<cfset this.mappings["/Hoth"] = expandPath("/farcry/plugins/farcryhoth/packages/custom/hoth") />
Copy the following code to your onError method of your Application.cfc just before the cfreturn (you may need to change the name of your exception argument):
<cfif structKeyExists(application,"hoth")> <cfset application.hoth.hoth.track(arguments.exception) /> </cfif>
Perform an updateapp on your FarCry site, then log into the webtop and go to Admin --> Edit Config and edit the "Hoth: ColdFusion Exception Tracking" configuration.
- (< FarCry 6.0.18 or < 6.1.3 only) Perform another updateapp and you will be done. Note: This second update app is required due to a bug in FarCry core (FC-2538). It will also require an update app any time you modify the Hoth configuration.