Skip to content

Commit 2d37daa

Browse files
Add Laravel task to reload running services (#4141)
* Add Laravel task to reload running services * docgen
1 parent f8a4af5 commit 2d37daa

File tree

2 files changed

+47
-36
lines changed

2 files changed

+47
-36
lines changed

docs/recipe/laravel.md

Lines changed: 44 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -282,288 +282,296 @@ Removes the cached bootstrap files.
282282

283283

284284

285-
### artisan\:route\:cache {#artisan-route-cache}
285+
### artisan\:reload {#artisan-reload}
286286
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L158)
287287

288+
Reload running services.
289+
290+
291+
292+
293+
### artisan\:route\:cache {#artisan-route-cache}
294+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L161)
295+
288296
Creates a route cache file for faster route registration.
289297

290298

291299

292300

293301
### artisan\:route\:clear {#artisan-route-clear}
294-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L161)
302+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L164)
295303

296304
Removes the route cache file.
297305

298306

299307

300308

301309
### artisan\:route\:list {#artisan-route-list}
302-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L164)
310+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L167)
303311

304312
Lists all registered routes.
305313

306314

307315

308316

309317
### artisan\:storage\:link {#artisan-storage-link}
310-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L167)
318+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L170)
311319

312320
Creates the symbolic links configured for the application.
313321

314322

315323

316324

317325
### artisan\:view\:cache {#artisan-view-cache}
318-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L170)
326+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L173)
319327

320328
Compiles all of the application\'s Blade templates.
321329

322330

323331

324332

325333
### artisan\:view\:clear {#artisan-view-clear}
326-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L173)
334+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L176)
327335

328336
Clears all compiled view files.
329337

330338

331339

332340

333341
### artisan\:queue\:failed {#artisan-queue-failed}
334-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L180)
342+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L183)
335343

336344
Lists all of the failed queue jobs.
337345

338346
Queue and Horizon.
339347

340348

341349
### artisan\:queue\:flush {#artisan-queue-flush}
342-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L183)
350+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L186)
343351

344352
Flushes all of the failed queue jobs.
345353

346354

347355

348356

349357
### artisan\:queue\:restart {#artisan-queue-restart}
350-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L186)
358+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L189)
351359

352360
Restarts queue worker daemons after their current job.
353361

354362

355363

356364

357365
### artisan\:horizon {#artisan-horizon}
358-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L189)
366+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L192)
359367

360368
Starts a master supervisor in the foreground.
361369

362370

363371

364372

365373
### artisan\:horizon\:clear {#artisan-horizon-clear}
366-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L192)
374+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L195)
367375

368376
Deletes all of the jobs from the specified queue.
369377

370378

371379

372380

373381
### artisan\:horizon\:continue {#artisan-horizon-continue}
374-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L195)
382+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L198)
375383

376384
Instructs the master supervisor to continue processing jobs.
377385

378386

379387

380388

381389
### artisan\:horizon\:list {#artisan-horizon-list}
382-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L198)
390+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L201)
383391

384392
Lists all of the deployed machines.
385393

386394

387395

388396

389397
### artisan\:horizon\:pause {#artisan-horizon-pause}
390-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L201)
398+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L204)
391399

392400
Pauses the master supervisor.
393401

394402

395403

396404

397405
### artisan\:horizon\:purge {#artisan-horizon-purge}
398-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L204)
406+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L207)
399407

400408
Terminates any rogue Horizon processes.
401409

402410

403411

404412

405413
### artisan\:horizon\:status {#artisan-horizon-status}
406-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L207)
414+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L210)
407415

408416
Gets the current status of Horizon.
409417

410418

411419

412420

413421
### artisan\:horizon\:terminate {#artisan-horizon-terminate}
414-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L210)
422+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L213)
415423

416424
Terminates the master supervisor so it can be restarted.
417425

418426

419427

420428

421429
### artisan\:horizon\:publish {#artisan-horizon-publish}
422-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L213)
430+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L216)
423431

424432
Publish all of the Horizon resources.
425433

426434

427435

428436

429437
### artisan\:horizon\:supervisors {#artisan-horizon-supervisors}
430-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L216)
438+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L219)
431439

432440
Lists all of the supervisors.
433441

434442

435443

436444

437445
### artisan\:horizon\:clear-metrics {#artisan-horizon-clear-metrics}
438-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L219)
446+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L222)
439447

440448
Deletes metrics for all jobs and queues.
441449

442450

443451

444452

445453
### artisan\:horizon\:snapshot {#artisan-horizon-snapshot}
446-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L222)
454+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L225)
447455

448456
Stores a snapshot of the queue metrics.
449457

450458

451459

452460

453461
### artisan\:schedule\:interrupt {#artisan-schedule-interrupt}
454-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L229)
462+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L232)
455463

456464
Interrupt in-progress schedule:run invocations.
457465

458466
Scheduler.
459467

460468

461469
### artisan\:telescope\:clear {#artisan-telescope-clear}
462-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L236)
470+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L239)
463471

464472
Clears all entries from Telescope.
465473

466474
Telescope.
467475

468476

469477
### artisan\:telescope\:prune {#artisan-telescope-prune}
470-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L239)
478+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L242)
471479

472480
Prunes stale entries from the Telescope database.
473481

474482

475483

476484

477485
### artisan\:octane {#artisan-octane}
478-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L246)
486+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L249)
479487

480488
Starts the octane server.
481489

482490
Octane.
483491

484492

485493
### artisan\:octane\:reload {#artisan-octane-reload}
486-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L249)
494+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L252)
487495

488496
Reloads the octane server.
489497

490498

491499

492500

493501
### artisan\:octane\:stop {#artisan-octane-stop}
494-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L252)
502+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L255)
495503

496504
Stops the octane server.
497505

498506

499507

500508

501509
### artisan\:octane\:status {#artisan-octane-status}
502-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L255)
510+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L258)
503511

504512
Check the status of the octane server.
505513

506514

507515

508516

509517
### artisan\:nova\:publish {#artisan-nova-publish}
510-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L262)
518+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L265)
511519

512520
Publish all of the Laravel Nova resources.
513521

514522
Nova.
515523

516524

517525
### artisan\:reverb\:start {#artisan-reverb-start}
518-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L269)
526+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L272)
519527

520528
Starts the Reverb server.
521529

522530
Reverb.
523531

524532

525533
### artisan\:reverb\:restart {#artisan-reverb-restart}
526-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L272)
534+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L275)
527535

528536
Restarts the Reverb server.
529537

530538

531539

532540

533541
### artisan\:pulse\:check {#artisan-pulse-check}
534-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L279)
542+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L282)
535543

536544
Starts the Pulse server.
537545

538546
Pulse.
539547

540548

541549
### artisan\:pulse\:restart {#artisan-pulse-restart}
542-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L282)
550+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L285)
543551

544552
Restarts the Pulse server.
545553

546554

547555

548556

549557
### artisan\:pulse\:purge {#artisan-pulse-purge}
550-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L285)
558+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L288)
551559

552560
Purges all Pulse data from storage.
553561

554562

555563

556564

557565
### artisan\:pulse\:work {#artisan-pulse-work}
558-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L288)
566+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L291)
559567

560568
Process incoming Pulse data from the ingest stream.
561569

562570

563571

564572

565573
### deploy {#deploy}
566-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L294)
574+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L297)
567575

568576
Deploys your project.
569577

recipe/laravel.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ function laravel_version_compare($version, $comparator)
154154
desc('Removes the cached bootstrap files');
155155
task('artisan:optimize:clear', artisan('optimize:clear'));
156156

157+
desc('Reload running services');
158+
task('artisan:reload', artisan('reload'));
159+
157160
desc('Creates a route cache file for faster route registration');
158161
task('artisan:route:cache', artisan('route:cache'));
159162

0 commit comments

Comments
 (0)