353
353
354
354
355
355
# ## artifact_file
356
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L343 )
356
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L344 )
357
357
358
358
The file the artifact is saved to
359
359
@@ -363,7 +363,7 @@ The file the artifact is saved to
363
363
364
364
365
365
# ## artifact_dir
366
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L346 )
366
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L347 )
367
367
368
368
The directory the artifact is saved in
369
369
@@ -373,7 +373,7 @@ The directory the artifact is saved in
373
373
374
374
375
375
# ## artifact_excludes_file
376
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L350 )
376
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L351 )
377
377
378
378
Points to a file with a list of files to exclude from packaging.
379
379
The format is as with the `tar --exclude-from=[file]` option
@@ -384,7 +384,7 @@ The format is as with the `tar --exclude-from=[file]` option
384
384
385
385
386
386
# ## build_from_repo
387
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L353 )
387
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L354 )
388
388
389
389
If set to true, the artifact is built from a clean copy of the project repository instead of the current working directory
390
390
@@ -394,7 +394,7 @@ false
394
394
395
395
396
396
# ## repository
397
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L356 )
397
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L357 )
398
398
399
399
Overrides [repository](/docs/recipe/common.md#repository) from `recipe/common.php`.
400
400
406
406
407
407
408
408
# ## artifact_path
409
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L359 )
409
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L360 )
410
410
411
411
The relative path to the artifact file. If the directory does not exist, it will be created
412
412
@@ -419,7 +419,7 @@ return get('artifact_dir') . '/' . get('artifact_file');
419
419
420
420
421
421
# ## bin/tar
422
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L367 )
422
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L368 )
423
423
424
424
The location of the tar command. On MacOS you should have installed gtar, as it supports the required settings
425
425
:::info Autogenerated
@@ -430,14 +430,14 @@ The value of this configuration is autogenerated on access.
430
430
431
431
432
432
# ## additional_shared_files
433
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L439 )
433
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L440 )
434
434
435
435
Array of shared files that will be added to the default shared_files without overriding
436
436
437
437
438
438
439
439
# ## additional_shared_dirs
440
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L441 )
440
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L442 )
441
441
442
442
Array of shared directories that will be added to the default shared_dirs without overriding
443
443
@@ -544,21 +544,21 @@ Config Import.
544
544
# ## magento:upgrade:db
545
545
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L300)
546
546
547
- Upgrades magento database.
547
+ Upgrades magento database. This task is only excuted once when multiple hosts have been selected for deployment.
548
548
549
549
550
550
551
551
552
552
# ## magento:cache:flush
553
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L309 )
553
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L310 )
554
554
555
555
Flushes Magento Cache.
556
556
557
557
558
558
559
559
560
560
# ## deploy:magento
561
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L314 )
561
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L315 )
562
562
563
563
Magento2 deployment operations.
564
564
@@ -575,7 +575,7 @@ This task is group task which contains next tasks:
575
575
576
576
577
577
# ## magento:build
578
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L324 )
578
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L325 )
579
579
580
580
Magento2 build operations.
581
581
@@ -588,7 +588,7 @@ This task is group task which contains next tasks:
588
588
589
589
590
590
# ## deploy
591
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L330 )
591
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L331 )
592
592
593
593
Deploys your project.
594
594
@@ -604,47 +604,47 @@ This task is group task which contains next tasks:
604
604
605
605
606
606
# ## artifact:package
607
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L378 )
607
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L379 )
608
608
609
609
Packages all relevant files in an artifact.
610
610
611
611
612
612
613
613
614
614
# ## artifact:upload
615
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L388 )
615
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L389 )
616
616
617
617
Uploads artifact in release folder for extraction.
618
618
619
619
620
620
621
621
622
622
# ## artifact:extract
623
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L393 )
623
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L394 )
624
624
625
625
Extracts artifact in release path.
626
626
627
627
628
628
629
629
630
630
# ## build:remove-generated
631
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L399 )
631
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L400 )
632
632
633
633
Clears generated files prior to building.
634
634
635
635
636
636
637
637
638
638
# ## build:prepare
639
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L404 )
639
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L405 )
640
640
641
641
Prepare local artifact build.
642
642
643
643
644
644
645
645
646
646
# ## artifact:build
647
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L429 )
647
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L430 )
648
648
649
649
Builds an artifact.
650
650
@@ -661,15 +661,15 @@ This task is group task which contains next tasks:
661
661
662
662
663
663
# ## deploy:additional-shared
664
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L445 )
664
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L446 )
665
665
666
666
Adds additional files and dirs to the list of shared files and dirs.
667
667
668
668
669
669
670
670
671
671
# ## magento:set_cache_prefix
672
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L460 )
672
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L461 )
673
673
674
674
Update cache id_prefix.
675
675
@@ -683,15 +683,15 @@ after('deploy:magento', 'magento:cleanup_cache_prefix');
683
683
684
684
685
685
# ## magento:cleanup_cache_prefix
686
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L500 )
686
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L501 )
687
687
688
688
Cleanup cache id_prefix env files.
689
689
690
690
After successful deployment, move the tmp_env.php file to env.php ready for next deployment
691
691
692
692
693
693
# ## magento:cron:stop
694
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L516 )
694
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L517 )
695
695
696
696
Remove cron from crontab and kill running cron jobs.
697
697
@@ -703,7 +703,7 @@ To use this feature, add the following to your deployer scripts:
703
703
704
704
705
705
# ## magento:cron:install
706
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L532 )
706
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L533 )
707
707
708
708
Install cron in crontab.
709
709
@@ -715,7 +715,7 @@ To use this feature, add the following to your deployer scripts:
715
715
716
716
717
717
# ## artifact:prepare
718
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L538 )
718
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L539 )
719
719
720
720
Prepares an artifact on the target server.
721
721
@@ -735,7 +735,7 @@ This task is group task which contains next tasks:
735
735
736
736
737
737
# ## artifact:finish
738
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L551 )
738
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L552 )
739
739
740
740
Executes the tasks after artifact is released.
741
741
@@ -750,7 +750,7 @@ This task is group task which contains next tasks:
750
750
751
751
752
752
# ## artifact:deploy
753
- [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L560 )
753
+ [Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L561 )
754
754
755
755
Actually releases the artifact deployment.
756
756
0 commit comments