This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Ilesyt
Hi, I have a hosted site that I am working on. I wish to activate cron job jobs, but it's just not working. The Artisan file is in public_html folder.
My cron job for the server looks like this (I have also tried just /artisan or artisan, both don't work either):
This is what my code for running the cron job looks like, it is just a test code to see if the cron job works:
public function registerSchedule($schedule)
{
$schedule->call(function () {
$fb = new Feedback();
$fb->name = 'Test2';
$fb->email = 'test2@cron.com';
$fb->msg = 'hopefully this works';
$fb->save();
})->everyThirtyMinutes();
}
Please advise me what I'm doing wrong and what should be done.
1-1 of 1