diff --git a/public/screenshots/installation/cloudways-cron.png b/public/screenshots/installation/cloudways-cron.png new file mode 100644 index 0000000..e858a1e Binary files /dev/null and b/public/screenshots/installation/cloudways-cron.png differ diff --git a/public/screenshots/installation/cpanel-cron.png b/public/screenshots/installation/cpanel-cron.png new file mode 100644 index 0000000..7825bc2 Binary files /dev/null and b/public/screenshots/installation/cpanel-cron.png differ diff --git a/public/screenshots/admin/settings/cron-job.png b/public/screenshots/installation/ploi-cron.png similarity index 100% rename from public/screenshots/admin/settings/cron-job.png rename to public/screenshots/installation/ploi-cron.png diff --git a/resources/docs/personal/installation/after-installing.md b/resources/docs/personal/installation/after-installing.md index 95c4688..853a2c6 100644 --- a/resources/docs/personal/installation/after-installing.md +++ b/resources/docs/personal/installation/after-installing.md @@ -25,13 +25,33 @@ LaraPass v2 uses scheduled tasks to automatically execute certain actions such a
In order to setup cron job, navigate to the cron jobs page on your hosting panel, select the interval at which the cron jobs should run at (ideally you should set every minute or every 5 minutes), and then add the following command (along with the directory of larapass on your server) - +--- + +**`Cron jon command on Cloudways`** ```php -php /path_to_larapass_directory_on_your_server/artisan schedule:run +* * * * * php /home/master/applications/app_root_name/public_html/artisan schedule:run >> /dev/null 2>&1 ``` +Replace **'app_root_name'** with the random text/name generated by cloudways for your app. +

cloudways-cron

+ +--- -`Example of cron job setup on Ploi.io` +**`Cron job command on cPanel`** +```php +/usr/local/bin/ea-php74 /path_to_larapass_directory/artisan schedule:run >/dev/null 2>&1 +``` +Replace **'path_to_larapass_directory'** with the actual path to your larapass directory on the cpanel server (refer screenshot below). +

cloudways-cron

+ +--- + +**`Cron job command on Ploi.io`** +```php +php /path_to_larapass_directory/artisan schedule:run +``` +Replace **'path_to_larapass_directory'** with the actual path to your larapass directory on the ploi server (refer screenshot below). +

cloudways-cron

-![screenshot](/screenshots/admin/settings/cron-job.png) > {primary} If your host doesn't allow setting up cron jobs, don't worry, it doesnt effect the performace of the app, you can always run these commnds manually through the command line. More details [`here`](../admin/automation-settings)