Skip to content

Commit

Permalink
Merge pull request #4 from LaraPass/dev
Browse files Browse the repository at this point in the history
Adds Cron Job Commands
  • Loading branch information
Moinuddin S. Khaja authored Dec 11, 2020
2 parents 3383f79 + 4c7b1c3 commit 0e5ad3a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/screenshots/installation/cpanel-cron.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 23 additions & 3 deletions resources/docs/personal/installation/after-installing.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,33 @@ LaraPass v2 uses scheduled tasks to automatically execute certain actions such a
<br>
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
```
<small>Replace **'app_root_name'** with the random text/name generated by cloudways for your app.</small>
<p><img src="/screenshots/installation/cloudways-cron.png" width="250" alt="cloudways-cron"/></a></p>

---

`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
```
<small>Replace **'path_to_larapass_directory'** with the actual path to your larapass directory on the cpanel server (refer screenshot below).</small>
<p><img src="/screenshots/installation/cpanel-cron.png" width="250" alt="cloudways-cron"/></a></p>

---

**`Cron job command on Ploi.io`**
```php
php /path_to_larapass_directory/artisan schedule:run
```
<small>Replace **'path_to_larapass_directory'** with the actual path to your larapass directory on the ploi server (refer screenshot below).</small>
<p><img src="/screenshots/installation/ploi-cron.png" width="250" alt="cloudways-cron"/></a></p>

![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)
Expand Down

0 comments on commit 0e5ad3a

Please sign in to comment.