- Added docker-compose.yml with PHP 8.4 container - Configured app to run on port 8080 via APP_PORT - Updated storage and bootstrap permissions for Docker - Removed MySQL service to use SQLite database
22 أسطر
816 B
PHP
22 أسطر
816 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schedule;
|
|
|
|
Schedule::command('currency:fetch --today')
|
|
->everySixHours()
|
|
->appendOutputTo(storage_path('logs/' . today()->format('Y-m-d') . '.log'))
|
|
->onFailure(function () {
|
|
// TODO: set the correct sender email
|
|
// TODO: set the correct recipient email
|
|
|
|
// \Illuminate\Support\Facades\Mail::raw(
|
|
// "Currency fetching failed!\n\nCheck the page: https://boqash.com/price-currency\nAnd review the logs for more details.",
|
|
// function (\Illuminate\Mail\Message $message) {
|
|
// $message
|
|
// ->from(config('mail.from.address'))
|
|
// ->to(config('mail.admin.address'))
|
|
// ->subject('Currency Fetching Failed!');
|
|
// }
|
|
// );
|
|
});
|