Skip to content

Instantly share code, notes, and snippets.

@abada
Created April 2, 2018 21:32
Show Gist options
  • Save abada/f561beb7b33976f84b32186573545c9b to your computer and use it in GitHub Desktop.
Save abada/f561beb7b33976f84b32186573545c9b to your computer and use it in GitHub Desktop.
Starting the Laravel cron job on a Mac
accepted
Not directly answering your question, but proposing another solution:
If you want to set up cron jobs for your development environment, it's best to use Homestead, for its Linux standards compliance.
For small projects that i develop directly inside macOS, i run the following command inside the project root (in a separate terminal tab) to have my jobs run every minute:
```while true; do php artisan schedule:run; sleep 60; done```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment