| Server IP : 35.154.56.2 / Your IP : 216.73.217.116 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-0-189 6.8.0-1029-aws #31-Ubuntu SMP Wed Apr 23 18:20:04 UTC 2025 aarch64 User : ubuntu ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /srv/shop.prima-automation.com/html/pub/ |
Upload File : |
<?php
/**
* Scheduled jobs entry point
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
use Magento\Store\Model\Store;
use Magento\Store\Model\StoreManager;
require dirname(__DIR__) . '/app/bootstrap.php';
if (php_sapi_name() === 'cli') {
echo "You cannot run this from the command line." . PHP_EOL .
"Run \"php bin/magento cron:run\" instead." . PHP_EOL;
exit(1);
} else {
$opt = $_GET;
}
try {
foreach ($opt as $key => $value) {
$opt[$key] = escapeshellarg($value);
}
$opt['standaloneProcessStarted'] = '0';
$params = $_SERVER;
$params[StoreManager::PARAM_RUN_CODE] = 'admin';
$params[Store::CUSTOM_ENTRY_POINT_PARAM] = true;
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $params);
/** @var \Magento\Framework\App\Cron $app */
$app = $bootstrap->createApplication(\Magento\Framework\App\Cron::class, ['parameters' => $opt]);
$bootstrap->run($app);
} catch (\Exception $e) {
echo $e;
exit(1);
}