Skip to content

isitnikov/magento-support-checker

 
 

Repository files navigation

Installation & Usage

There are two scripts:

magento_support_checker.phar - contains all the checks and can be used independently magento-support-checker - bash command to upload magento_support_checker.phar to Magento Cloud automatically

Magento Cloud automatic deployment script

Installation

  1. Have magento-cloud cli command installed and configured with API TOKEN. https://devdocs.magento.com/cloud/reference/cli-ref-topic.html
  2. Clone this repo into any folder
git clone [email protected]:npuchko/magento-support-checker.git
  1. Install shortcut script
sudo ln -s {full_patch_to_repo}/magento-support-checker /usr/local/bin/msc

Usage with Magento Cloud

Interactive

msc

Non-interactive

msc {cloud-project-id} {cloud-project-env} {check-name}
# example
msc ko32g3ggweggr staging advanced_reporting

Usage without Magento Cloud

  1. Download phar from this repo: https://github.com/npuchko/magento-support-checker/blob/master/magento_support_checker.phar
  2. Copy phar script into {MAGENTO_ROOT_DIR}/var directory:
  3. Run phar script
# all checks
php magento_support_checker.phar all
# product recommendations only
php magento_support_checker.phar product_recommendations
# advanced reporting only
php magento_support_checker.phar advanced_reporting

Example report:

Check group: advanced_reporting with total 8 rules'
[1/8] Is Enabled: OK
[2/8] Multiple Currency: OK
[3/8] Cron in DB settings: [{"scope":"default","scope_id":"0","value":"00 02 * * *"}]
Cron jobs in DB not found
[4/8] Token in settings: OK
[5/8] Last generated report in flag: 0 days ago. (2022-06-02 07:00:54) File URL: https://example.com/media/analytics/23gergerggregfbd4tbregre/data.tgz
OK
[6/8] Escaped quotes in db: OK
[7/8] Check unexisting stores: OK
[8/8] Generated report URL: https://advancedreporting.rjmetrics.com/report?otp=vwewrgerg4fergergreg-ergergergergrgeergregerg

Contribution

To build phar file

cd build && ./build.sh

To add check

  1. Create new class in src/MagentoSupport/SupportChecker/Check/{check_folder}
  2. Add class into src/main.php -> $checksList variable

About

Magento support checker script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 97.0%
  • Shell 3.0%