Permalink
Browse files

Merge pull request #1 from punkstar/master

Added support for modman, moved extension from local to community code pool and added instructions for installing via modman (by punkstar)
  • Loading branch information...
2 parents 4ae3f94 + aec681f commit 6086365c3fc9b3f4f1b1a2744f0355a4ab205e25 Peter Jaap Blaakmeer committed Sep 12, 2012
View
@@ -1,15 +1,18 @@
-Magento Exceptions to Codebase
-=================
+# Magento Exceptions to Codebase
+
+## Introduction
-## Introduction ##
This Magento extension inserts all the Magento exceptions to your Codebase account (see http://blog.atechmedia.com/2012/08/exception-tracking-in-codebase/).
-## Requirements ##
+## Requirements
+
* Codebase account (www.codebasehq.com)
* Magento >= 1.5
* php-airbrake (https://github.com/nodrew/php-airbrake) (included)
+* PHP >= 5.3
+
+## Note
-## Notes ##
The excellent php-airbrake class is included because the file Configuration.php is slightly changed; line 33 has been changed to point to exceptions.codebasehq.com instead of api.airbrake.io.
Magento doesn't actually throw exceptions; it uses a custom exception handler. Therefore we cannot use the EventHandler that is bundled with php-airbrake but instead we dissect Magento's stack trace message and feed it to Codebase Exceptions.
@@ -18,12 +21,13 @@ The file errors/report.php needs to be overwritten for the helper function to be
You can test whether the extension works by throwing an exception by visiting http://www.yourdomain.com/exceptions/index/test
-## Installation ##
- cd /path/to/your/magento/root
+## Installation
+
+ cd <your/magento/root>
+ mkdir .modman
+ cd .modman
git clone git@github.com:elgentos/CodebaseExceptions.git CodebaseExceptions
- cp -R CodebaseExceptions/* .
- rm -rf CodebaseExceptions
- rm -rf var/cache/*
- rm -rf var/session/*
+ cd ..
+ modman deploy CodebaseExceptions --force
Now go to your backend and fill out the Codebase Exceptions API key (you can find this under the tab Exceptions in your project page in Codebase).
@@ -3,7 +3,7 @@
<modules>
<Elgentos_CodebaseExceptions>
<active>true</active>
- <codePool>local</codePool>
+ <codePool>community</codePool>
</Elgentos_CodebaseExceptions>
</modules>
</config>
View
4 modman
@@ -0,0 +1,4 @@
+app/code/community/Elgentos/CodebaseExceptions app/code/community/Elgentos/CodebaseExceptions
+app/etc/modules/* app/etc/modules/
+errors/report.php errors/report.php
+lib/Airbrake lib/Airbrake

0 comments on commit 6086365

Please sign in to comment.