Replies: 1 comment 1 reply
-
Hey, @brokerUA Take a look here, this may help you out. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
When run scheduler:
/usr/local/php72/bin/php -c /home/server/.system/php/site.ini /home/path/to/artisan schedule:run
but tasks execute without my ini configuration (added custom php extension).
If run task direct:
/usr/local/php72/bin/php -c /home/server/.system/php/site.ini /home/path/to/artisan myTask
ini configuration apply successfully.
Why custom config does not delegated to tasks?
Temporary solution run task through
exec
like this:$path = '/usr/local/php72/bin/php -c /home/server/.system/php/site.ini /home/path/to/artisan ';
$schedule->exec($path . 'myTask')->everyTenMinutes();
I don’t understand if this is a scheduler error that it does not pick up the config from the request or normal behavior...
Laravel 7.30.6, PHP 7.2, CentOS 7, Apache
Beta Was this translation helpful? Give feedback.
All reactions