Skip to content

Latest commit

History

History
41 lines (32 loc) 路 1.49 KB

File metadata and controls

41 lines (32 loc) 路 1.49 KB

logo

Sentry for 馃洅 OpenCart 2.3.x

"Sentry is a cross-platform 馃挜 crash reporting and aggregation platform". For more information see official Sentry repository

Installation

  1. Requiring installed vQmod because vQmod doesn't support installing via composer itself.
  2. 馃挷 composer require sasedev/composer-plugin-filecopier for files manipulating
  3. 馃挷 composer require burdapraha/oc_sentry dev-master
  4. Add this code to your 馃幍 composer.json project file, extra section:
    "extra": {
        "filescopier": [
            {
                "source": "vendor/burdapraha/oc_sentry/upload",
                "destination": "upload",
                "debug": "true"
            },
            {
                "source": "vendor/burdapraha/oc_version_number/upload",
                "destination": "upload",
                "debug": "true"
            }            
        ]
    }    

It will move vQmod xml file to correct folder.

  1. add 馃攽 constants to your config.php and /admin/config.php:
  • define('SENTRY_PHP', 'FILL_YOUR_ACCESS_PHP');
  • define('SENTRY_JS', 'FILL_YOUR_ACCESS_JS');
  • define('SENTRY_JS_LIB', ''); // here constant is optional, if you want use self-hosted raven-js library
  1. optionally you can add row to your .gitignore file with path to sentry.xml (example: upload/vqmod/xml/sentry.xml)
  2. celebrate! 馃帀 馃帀 馃帀