the bola v2 website
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

git.php 5.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Git Integration
  6. |--------------------------------------------------------------------------
  7. |
  8. | Whether Statamic's git integration should be enabled. This feature
  9. | assumes that git is already installed and accessible by your
  10. | PHP process' server user. For more info, see the docs at:
  11. |
  12. | https://statamic.dev/git-integration
  13. |
  14. */
  15. 'enabled' => env('STATAMIC_GIT_ENABLED', false),
  16. /*
  17. |--------------------------------------------------------------------------
  18. | Automatically Run
  19. |--------------------------------------------------------------------------
  20. |
  21. | By default, commits are automatically queued when `Saved` or `Deleted`
  22. | events are fired. If you prefer users to manually trigger commits
  23. | using the `Git` utility interface, you may set this to `false`.
  24. |
  25. */
  26. 'automatic' => env('STATAMIC_GIT_AUTOMATIC', true),
  27. /*
  28. |--------------------------------------------------------------------------
  29. | Queue Connection
  30. |--------------------------------------------------------------------------
  31. |
  32. | You may choose which queue connection should be used when dispatching
  33. | commit jobs. Unless specified, the default connection will be used.
  34. |
  35. | https://statamic.dev/git-integration#queueing-commits
  36. |
  37. */
  38. 'queue_connection' => env('STATAMIC_GIT_QUEUE_CONNECTION'),
  39. /*
  40. |--------------------------------------------------------------------------
  41. | Dispatch Delay
  42. |--------------------------------------------------------------------------
  43. |
  44. | When `Saved` and `Deleted` events queue up commits, you may wish to
  45. | set a delay time in minutes for each queued job. This can allow
  46. | for more consolidated commits when you have multiple users
  47. | making simultaneous content changes to your repository.
  48. |
  49. | Note: Not supported by default `sync` queue driver.
  50. |
  51. */
  52. 'dispatch_delay' => env('STATAMIC_GIT_DISPATCH_DELAY', 0),
  53. /*
  54. |--------------------------------------------------------------------------
  55. | Git User
  56. |--------------------------------------------------------------------------
  57. |
  58. | The git user that will be used when committing changes. By default, it
  59. | will attempt to commit with the authenticated user's name and email
  60. | when possible, falling back to the below user when not available.
  61. |
  62. */
  63. 'use_authenticated' => true,
  64. 'user' => [
  65. 'name' => env('STATAMIC_GIT_USER_NAME', 'Spock'),
  66. 'email' => env('STATAMIC_GIT_USER_EMAIL', 'spock@example.com'),
  67. ],
  68. /*
  69. |--------------------------------------------------------------------------
  70. | Tracked Paths
  71. |--------------------------------------------------------------------------
  72. |
  73. | Define the tracked paths to be considered when staging changes. Default
  74. | stache and file locations are already set up for you, but feel free
  75. | to modify these paths to suit your storage config. Referencing
  76. | absolute paths to external repos is also completely valid.
  77. |
  78. */
  79. 'paths' => [
  80. base_path('content'),
  81. base_path('users'),
  82. resource_path('blueprints'),
  83. resource_path('fieldsets'),
  84. resource_path('forms'),
  85. resource_path('users'),
  86. storage_path('forms'),
  87. public_path('assets'),
  88. ],
  89. /*
  90. |--------------------------------------------------------------------------
  91. | Git Binary
  92. |--------------------------------------------------------------------------
  93. |
  94. | By default, Statamic will try to use the "git" command, but you can set
  95. | an absolute path to the git binary if necessary for your environment.
  96. |
  97. */
  98. 'binary' => env('STATAMIC_GIT_BINARY', 'git'),
  99. /*
  100. |--------------------------------------------------------------------------
  101. | Commands
  102. |--------------------------------------------------------------------------
  103. |
  104. | Define a list commands to be run when Statamic is ready to `git add`
  105. | and `git commit` your changes. These commands will be run once
  106. | per repo, attempting to consolidate commits where possible.
  107. |
  108. */
  109. 'commands' => [
  110. 'git add {{ paths }}',
  111. 'git -c "user.name={{ name }}" -c "user.email={{ email }}" commit -m "{{ message }}"',
  112. ],
  113. /*
  114. |--------------------------------------------------------------------------
  115. | Push
  116. |--------------------------------------------------------------------------
  117. |
  118. | Determine whether `git push` should be run after the commands above
  119. | have finished. This is disabled by default, but can be enabled
  120. | globally, or per environment using the provided variable.
  121. |
  122. */
  123. 'push' => env('STATAMIC_GIT_PUSH', false),
  124. /*
  125. |--------------------------------------------------------------------------
  126. | Ignored Events
  127. |--------------------------------------------------------------------------
  128. |
  129. | Statamic will listen on all `Saved` and `Deleted` events, as well
  130. | as any events registered by installed addons. If you wish to
  131. | ignore any specific events, you may reference them here.
  132. |
  133. */
  134. 'ignored_events' => [
  135. // \Statamic\Events\UserSaved::class,
  136. // \Statamic\Events\UserDeleted::class,
  137. ],
  138. /*
  139. |--------------------------------------------------------------------------
  140. | Locale
  141. |--------------------------------------------------------------------------
  142. |
  143. | The locale to be used when translating commit messages, etc. By
  144. | default, the authenticated user's locale will be used, but
  145. | feel free to override this using the provided variable.
  146. |
  147. */
  148. 'locale' => env('STATAMIC_GIT_LOCALE', null),
  149. ];