-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdeploy-operations.php
152 lines (128 loc) · 4.57 KB
/
deploy-operations.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?php
declare(strict_types=1);
return [
/*
|--------------------------------------------------------------------------
| Operations Repository Connection
|--------------------------------------------------------------------------
|
| This option controls the database connection used to store the table
| of executed operations.
|
*/
'connection' => env('DB_CONNECTION'),
/*
|--------------------------------------------------------------------------
| Operations Repository Table
|--------------------------------------------------------------------------
|
| This table keeps track of all the operations that have already run for
| your application. Using this information, we can determine which of
| the operations on disk haven't actually been run in the database.
|
*/
'table' => 'operations',
/*
|--------------------------------------------------------------------------
| Database Transactions
|--------------------------------------------------------------------------
|
| This setting defines the rules for working with database transactions.
| This specifies a common value for all operations, but you can override this
| value directly in the class of the operation itself.
*/
'transactions' => [
// Determines whether the use of database transactions is enabled.
'enabled' => false,
// The number of attempts to execute a request within a transaction before throwing an error.
'attempts' => 1,
],
/*
|--------------------------------------------------------------------------
| Operations Path
|--------------------------------------------------------------------------
|
| This option defines the path to the operation directory.
|
*/
'path' => base_path('operations'),
/*
|--------------------------------------------------------------------------
| Path Exclusion
|--------------------------------------------------------------------------
|
| This option determines which directory and/or file paths should be
| excluded when processing files.
|
| Valid values: array, string or null
|
| Specify `null` to disable.
|
| For example,
| ['foo', 'bar']
| 'foo'
| null
|
*/
'exclude' => null,
/*
|--------------------------------------------------------------------------
| Asynchronous settings
|--------------------------------------------------------------------------
|
| Defines whether the operation will run synchronously or asynchronously.
|
| When this option is activated, each operation will be performed through jobs.
*/
'async' => false,
/*
|--------------------------------------------------------------------------
| Queue
|--------------------------------------------------------------------------
|
| This option specifies the queue settings that will process
| asynchronous operations.
|
*/
'queue' => [
/*
|--------------------------------------------------------------------------
| Queue Connection
|--------------------------------------------------------------------------
|
| This parameter defines the default connection.
|
*/
'connection' => env('DEPLOY_OPERATIONS_QUEUE_CONNECTION', env('QUEUE_CONNECTION', 'sync')),
/*
|--------------------------------------------------------------------------
| Queue Name
|--------------------------------------------------------------------------
|
| This parameter specifies the name of the queue to which asynchronous
| jobs will be sent.
|
*/
'name' => env('DEPLOY_OPERATIONS_QUEUE_NAME'),
],
/*
|--------------------------------------------------------------------------
| Show
|--------------------------------------------------------------------------
|
| This option determines the display settings for various information messages.
|
*/
'show' => [
/*
|--------------------------------------------------------------------------
| Full Path
|--------------------------------------------------------------------------
|
| This parameter determines how exactly the link to the created file should
| be displayed - the full path to the file or a relative one.
|
*/
'full_path' => (bool) env('DEPLOY_OPERATIONS_SHOW_FULL_PATH', false),
],
];