Issue With Cronjobs To Send Every Minute

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
quadri_folo
Posts: 12
Joined: 15 Feb 2021, 22:23

Issue With Cronjobs To Send Every Minute

Post by quadri_folo » 15 Feb 2021, 22:37

Laravel Framework 6.20.16
Aimeos Version : 20.10.18
Php 7.4.12
Environment:Mac

Hi, I've setup the configuration needed to run the Cronjob for sending emails it works when I manually run the job for sending emails but if I want to send this job every minute it won't do this automatically. is there additional configuration needed for this?

User avatar
aimeos
Administrator
Posts: 7865
Joined: 01 Jan 1970, 00:00

Re: Issue With Cronjobs To Send Every Minute

Post by aimeos » 16 Feb 2021, 18:09

Execute on the CLI:

Code: Select all

crontab -e
Add this line there (change "/path/to/artisan" to the real path):

Code: Select all

* * * * * php /path/to/artisan aimeos:jobs "order/export/csv order/email/delivery order/email/payment order/email/voucher order/service/delivery subscription/export/csv customer/email/account"
More documentation about cronjob setup is available here:
https://aimeos.org/docs/latest/laravel/setup/#cronjobs
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

quadri_folo
Posts: 12
Joined: 15 Feb 2021, 22:23

Re: Issue With Cronjobs To Send Every Minute

Post by quadri_folo » 16 Feb 2021, 23:16

Sorry i'm quite new to cronjobs, so the pathtoartisan for this would be the place my project is stored or would it be place the jobs are located within my project or just the place the project is stored in general ?

User avatar
aimeos
Administrator
Posts: 7865
Joined: 01 Jan 1970, 00:00

Re: Issue With Cronjobs To Send Every Minute

Post by aimeos » 18 Feb 2021, 07:38

"/path/to/artisan" is the full path to the "artisan" file in your Laravel application directory.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

quadri_folo
Posts: 12
Joined: 15 Feb 2021, 22:23

Re: Issue With Cronjobs To Send Every Minute

Post by quadri_folo » 19 Feb 2021, 08:43

Thank you i've set this up now, when i make a purchase I get the message in the command line saying there is new mail but the mail doesn't actually send would I have to run another command to send the mail?

quadri_folo
Posts: 12
Joined: 15 Feb 2021, 22:23

Re: Issue With Cronjobs To Send Every Minute

Post by quadri_folo » 21 Feb 2021, 14:28

When using the website in production, will emails send automatically or will I need to create an additional controller for this?

User avatar
aimeos
Administrator
Posts: 7865
Joined: 01 Jan 1970, 00:00

Re: Issue With Cronjobs To Send Every Minute

Post by aimeos » 22 Feb 2021, 14:13

They will be sent if you set up the cronjob like explained.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply