laravel / lumen-framework

The Laravel Lumen Framework.
https://lumen.laravel.com
MIT License
1.48k stars 419 forks source link

php artisan schedule:run --env=testing not working #907

Closed ProteanCode closed 5 years ago

ProteanCode commented 5 years ago

Description:

I want to run a scheduler in testing env but it isn't working no matter if I run it by using

php artisan --env=testing schedule:run

or

php artisan schedule:run --env=testing

driesvints commented 5 years ago

Heya, thanks for reporting.

I'll need more info and/or code to debug this further. Please post relevant code like models, jobs, commands, notifications, events, listeners, controller methods, routes, etc. You may use https://paste.laravel.io to post larger snippets or just reply with shorter code snippets.

Thanks!

ProteanCode commented 5 years ago

Heya, thanks for reporting.

I'll need more info and/or code to debug this further. Please post relevant code like models, jobs, commands, notifications, events, listeners, controller methods, routes, etc. You may use https://paste.laravel.io to post larger snippets or just reply with shorter code snippets.

Thanks!

I will create separate repo later for this

driesvints commented 5 years ago

Closing this issue because it's inactive, already solved, old or not relevant anymore. Feel free to reply if you're still experiencing this issue.

hazeem1991 commented 5 years ago

iam having the same issue env not loading the testing env not loaded