Skip to content

Instantly share code, notes, and snippets.

@prashantsharma
Last active December 9, 2022 04:45
Show Gist options
  • Save prashantsharma/aa14270f6439584396fd3f1e89a4198a to your computer and use it in GitHub Desktop.
Save prashantsharma/aa14270f6439584396fd3f1e89a4198a to your computer and use it in GitHub Desktop.

Revisions

  1. prashantsharma revised this gist Dec 9, 2022. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions run_olp.md
    Original file line number Diff line number Diff line change
    @@ -37,6 +37,7 @@ exit(0);
    // cd opt/website
    // php -f run_olp.php

    Method - 3

    <?php
  2. prashantsharma revised this gist Dec 9, 2022. 1 changed file with 13 additions and 0 deletions.
    13 changes: 13 additions & 0 deletions run_olp.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@

    Method - 1

    #!/usr/bin/env php
    <?php
    require_once './config/cli_bootstrap.php';
    @@ -16,6 +18,8 @@ exit(0);
    // This can be done by modifying bin/dockerized


    Method - 2

    #!/usr/bin/env php
    <?php
    require_once './config/cli_bootstrap.php';
    @@ -34,6 +38,15 @@ exit(0);
    // php -f run_olp.php


    <?php
    require_once './config/cli_bootstrap.php';
    use OfflineProcessing\Jobs\TrialsStrength;
    $input = ['task' => 'mssp'];
    $job = new TrialsStrength($input);
    $job->execute();

    // Call this from the CLI:
    // bin/dockerized tester php run_olp.php
  3. prashantsharma revised this gist Dec 9, 2022. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions run_olp.md
    Original file line number Diff line number Diff line change
    @@ -34,3 +34,6 @@ exit(0);
    // php -f run_olp.php





  4. prashantsharma revised this gist Dec 9, 2022. 1 changed file with 15 additions and 0 deletions.
    15 changes: 15 additions & 0 deletions run_olp.md
    Original file line number Diff line number Diff line change
    @@ -16,6 +16,21 @@ exit(0);
    // This can be done by modifying bin/dockerized


    #!/usr/bin/env php
    <?php
    require_once './config/cli_bootstrap.php';
    $runner = new \OfflineProcessing\Jobs\LicenseUsageReminderEmail([]);
    if (!$runner->run([])) {
    exit(1);
    }

    exit(0);

    // Execute below command from the dashweb container
    // docker-compose exec dashweb bash
    // cd opt/website
    // php -f run_olp.php


  5. prashantsharma revised this gist Dec 9, 2022. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions run_olp.md
    Original file line number Diff line number Diff line change
    @@ -16,3 +16,6 @@ exit(0);
    // This can be done by modifying bin/dockerized





  6. prashantsharma renamed this gist Dec 9, 2022. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  7. prashantsharma revised this gist Dec 9, 2022. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion run_olp
    Original file line number Diff line number Diff line change
    @@ -13,4 +13,6 @@ exit(0);
    // bin/dockerized test php run_olp.php

    // Note - As you are running this command outside container, you need to pass the DEV_EMAIL environment variable to docker compose
    // This can be done by modifying bin/dockerized
    // This can be done by modifying bin/dockerized


  8. prashantsharma revised this gist Dec 9, 2022. 1 changed file with 16 additions and 1 deletion.
    17 changes: 16 additions & 1 deletion run_olp
    Original file line number Diff line number Diff line change
    @@ -1 +1,16 @@
    ‎‎​

    #!/usr/bin/env php
    <?php
    require_once './config/cli_bootstrap.php';

    $runner = new \OfflineProcessing\Jobs\LicenseUsageReminderEmail([]);

    $runner->run([]);

    exit(0);

    // Execute below command on terminal at website root
    // bin/dockerized test php run_olp.php

    // Note - As you are running this command outside container, you need to pass the DEV_EMAIL environment variable to docker compose
    // This can be done by modifying bin/dockerized
  9. prashantsharma created this gist Dec 9, 2022.
    1 change: 1 addition & 0 deletions run_olp
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    ‎‎​