You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/helpers/artisan.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,12 @@
1
1
# Artisan Command
2
2
3
-
Quite often, when working with operations, it becomes necessary to run one or another console command, and each time you have to write the following code:
3
+
Quite often, when working with operations, it becomes necessary to run one or another console command,
4
+
and each time you have to write the following code:
If there are no operation files to execute, the `NoPendingDeployOperations` event will be sent.
13
13
14
-
In other cases, the `DeployOperationStarted` event will be sent before processing starts, and the `DeployOperationEnded` event will be sent after processing.
14
+
In other cases, the `DeployOperationStarted` event will be sent before processing starts,
15
+
and the `DeployOperationEnded` event will be sent after processing.
Copy file name to clipboardExpand all lines: docs/how-to-use/rollback.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
# Rolling Back Operations
2
2
3
-
To roll back the latest operation, you may use the `rollback` command. This command rolls back the last "batch" of actions, which may include multiple action files:
3
+
To roll back the latest operation, you may use the `rollback` command. This command rolls back the last "batch" of operations, which may include multiple operation files:
4
4
5
5
```
6
6
php artisan operations:rollback
7
7
```
8
8
9
-
You may roll back a limited number of operations by providing the `step` option to the rollback command. For example, the following command will roll back the last five actions:
9
+
You may roll back a limited number of operations by providing the `step` option to the rollback command. For example, the following command will roll back the last five operations:
The `operations:refresh` command will roll back all of your actions and then execute the `actions` command. This command effectively re-creates your entire
51
+
The `operations:refresh` command will roll back all of your operations and then execute the `operations` command. This command effectively re-creates your entire
Copy file name to clipboardExpand all lines: docs/how-to-use/running.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,15 +120,15 @@ return new class extends Operation
120
120
121
121
If the value is `$once = false`, the `up` method will be called every time the `operations` command called.
122
122
123
-
In this case, information about it will not be written to the `actions` table and, therefore, the `down` method will not be called when the rollback command is called.
123
+
In this case, information about it will not be written to the `operations` table and, therefore, the `down` method will not be called when the rollback command is called.
124
124
125
125
> Note
126
126
>
127
-
> When using the `before` parameter to run command, it is recommended to override the value of the `$before` attribute to `false`, otherwise this action will be executed twice.
127
+
> When using the `before` parameter to run command, it is recommended to override the value of the `$before` attribute to `false`, otherwise this operation will be executed twice.
128
128
129
129
## Execution In A Specific Environment
130
130
131
-
In some cases, it becomes necessary to execute an action in a specific environment. For example `production`.
131
+
In some cases, it becomes necessary to execute an operation in a specific environment. For example `production`.
132
132
133
133
For this you can use the `$environment` parameter:
134
134
@@ -162,11 +162,11 @@ return new class extends Operation
162
162
};
163
163
```
164
164
165
-
By default, the action will run in all environments. The same will happen if you specify `null` or `[]` as the value.
165
+
By default, the operation will run in all environments. The same will happen if you specify `null` or `[]` as the value.
166
166
167
167
## Execution Excluding Certain Environments
168
168
169
-
In some cases, it becomes necessary to execute an action excluding certain environments. For example `production`.
169
+
In some cases, it becomes necessary to execute an operation excluding certain environments. For example `production`.
170
170
171
171
For this you can use the `$except_environment` parameter:
172
172
@@ -200,15 +200,15 @@ return new class extends Operation
200
200
};
201
201
```
202
202
203
-
By default, no actions will be excluded. The same happens if you specify `null` or `[]` value.
203
+
By default, no operations will be excluded. The same happens if you specify `null` or `[]` value.
204
204
205
205
## Database Transactions
206
206
207
-
In some cases, it becomes necessary to undo previously performed actions in the database. For example, when code execution throws an error. To do this, the code must be wrapped in
207
+
In some cases, it becomes necessary to undo previously performed operations in the database. For example, when code execution throws an error. To do this, the code must be wrapped in
208
208
a transaction.
209
209
210
210
By setting the `$transactions = true` parameter, you will ensure that your code is wrapped in a transaction without having to manually call the `DB::transaction()` method. This
211
-
will reduce the time it takes to create the action.
211
+
will reduce the time it takes to create the operation.
212
212
213
213
```php
214
214
use DragonCode\LaravelDeployOperations\Operation;
@@ -228,9 +228,9 @@ return new class extends Operation
228
228
229
229
## Asynchronous Call
230
230
231
-
In some cases, it becomes necessary to execute actions in an asynchronous manner without delaying the deployment process.
231
+
In some cases, it becomes necessary to execute operations in an asynchronous manner without delaying the deployment process.
232
232
233
-
To do this, you need to override the `$async` property in the action class:
233
+
To do this, you need to override the `$async` property in the operation class:
234
234
235
235
```php
236
236
use DragonCode\LaravelDeployOperations\Operation;
@@ -246,9 +246,9 @@ return new class extends Operation
246
246
};
247
247
```
248
248
249
-
In this case, the action file that defines this parameter will run asynchronously using the `DragonCode\LaravelDeployOperations\Jobs\ActionJob` class.
249
+
In this case, the operation file that defines this parameter will run asynchronously using the `DragonCode\LaravelDeployOperations\Jobs\OperationJob` class.
250
250
251
-
The name of the connection and queue can be changed through the [settings](https://github.com/TheDragonCode/laravel-actions/tree/main/config).
251
+
The name of the connection and queue can be changed through the [settings](https://github.com/TheDragonCode/laravel-deploy-operations/tree/main/config).
252
252
253
253
::: Info
254
254
We remind you that in this case the [queuing system](https://laravel.com/docs/queues) must work in your application.
0 commit comments