trevorpan's avatar

A guide to deploying production artisan commands

| php artisan  | Runs | Notes |

| scout:import |once| if rerun, existing records that were deleted will reappear |
| schedule:run |once?| commands will not run without it |

Would anyone like to contribute to this guide?

I want to have a place to reference these deploy scripts. Got stumped many times on deploy. e.g. scout:import was run on each update. After deleting a record in the index it would reappear; I left it in the database for the record but don't necessarily want it in the search index. After numerous support emails with algolia I finally figured it out. So, if algolia itself wasn't privy to this nuance it seems like this guide would be really useful.

On forge, I had a few support tickets about cron jobs not running and was told they should be running. But again without a guide it's hard to know that, as it's not the most obvious thing (at least to me).

(also, not sure how to get a table to show as markdown on laracasts)

Anyhow, if you have experience with a command please make a post and I'll fold it in here!

0 likes
0 replies

Please or to participate in this conversation.