hvs
2 months ago
169
2
Laravel

Laravel Totem Cron Task Manager is unable to read env file

Posted 2 months ago by hvs

Hi

We are using Laravel Totem for one of our projects. The issue is that when we schedule some Laravel Command cron tasks via Totem, it is unable to read .env file which stores some API tokens. I understand that cron jobs don't run in the same environment as a bash shell (where the commands work fine). But I still don't know what exactly needs to be done so that the command scripts have access to .env

Any help will be appreciated. Thanks.

Please sign in or create an account to participate in this conversation.