Skip to content

Commit 680cc37

Browse files
committed
Shorten environment names
1 parent 7ff3368 commit 680cc37

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ Add a new queue connection to `config/queue.php`
3838
```php
3939
'cloudtasks' => [
4040
'driver' => 'cloudtasks',
41-
'project' => env('STACKKIT_CLOUD_TASKS_PROJECT', ''),
42-
'location' => env('STACKKIT_CLOUD_TASKS_LOCATION', ''),
43-
'queue' => env('STACKKIT_CLOUD_TASKS_QUEUE', 'default'),
41+
'project' => env('CLOUD_TASKS_PROJECT', ''),
42+
'location' => env('CLOUD_TASKS_LOCATION', ''),
43+
'queue' => env('CLOUD_TASKS_QUEUE', 'default'),
4444

4545
// Required when using AppEngine
46-
'app_engine' => env('STACKKIT_APP_ENGINE_TASK', false),
47-
'app_engine_service' => env('STACKKIT_APP_ENGINE_SERVICE', ''),
46+
'app_engine' => env('APP_ENGINE_TASK', false),
47+
'app_engine_service' => env('APP_ENGINE_SERVICE', ''),
4848

4949
// Required when not using AppEngine
50-
'handler' => env('STACKKIT_CLOUD_TASKS_HANDLER', ''),
51-
'service_account_email' => env('STACKKIT_CLOUD_TASKS_SERVICE_EMAIL', ''),
50+
'handler' => env('CLOUD_TASKS_HANDLER', ''),
51+
'service_account_email' => env('CLOUD_TASKS_SERVICE_EMAIL', ''),
5252

5353
'backoff' => 0,
5454
],
@@ -57,7 +57,7 @@ Add a new queue connection to `config/queue.php`
5757
If you are using separate services for dispatching and handling tasks, and your application only dispatches jobs and should not be able to handle jobs, you may disable the task handler from `config/cloud-tasks.php`:
5858

5959
```php
60-
'disable_task_handler' => env('STACKKIT_CLOUD_TASKS_DISABLE_TASK_HANDLER', false),
60+
'disable_task_handler' => env('CLOUD_TASKS_DISABLE_TASK_HANDLER', false),
6161
```
6262

6363
Finally, change the `QUEUE_CONNECTION` to the newly defined connection.
@@ -72,15 +72,15 @@ Please check the table below on what the values mean and what their value should
7272

7373
| Environment variable | Description | Example
7474
---------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------
75-
| `STACKKIT_CLOUD_TASKS_PROJECT` | The project your queue belongs to. | `my-project`
76-
| `STACKKIT_CLOUD_TASKS_LOCATION` | The region where the project is hosted. | `europe-west6`
77-
| `STACKKIT_CLOUD_TASKS_QUEUE` | The default queue a job will be added to. | `emails`
75+
| `CLOUD_TASKS_PROJECT` | The project your queue belongs to. | `my-project`
76+
| `CLOUD_TASKS_LOCATION` | The region where the project is hosted. | `europe-west6`
77+
| `CLOUD_TASKS_QUEUE` | The default queue a job will be added to. | `emails`
7878
| **App Engine**
79-
| `STACKKIT_APP_ENGINE_TASK` (optional) | Set to true to use App Engine task (else a Http task will be used). Defaults to false. | `true`
80-
| `STACKKIT_APP_ENGINE_SERVICE` (optional) | The App Engine service to handle the task (only if using App Engine task). | `api`
79+
| `APP_ENGINE_TASK` (optional) | Set to true to use App Engine task (else a Http task will be used). Defaults to false. | `true`
80+
| `APP_ENGINE_SERVICE` (optional) | The App Engine service to handle the task (only if using App Engine task). | `api`
8181
| **Non- App Engine apps**
82-
| `STACKKIT_CLOUD_TASKS_SERVICE_EMAIL` (optional) | The email address of the service account. Important, it should have the correct roles. See the section below which roles. | `[email protected]`
83-
| `STACKKIT_CLOUD_TASKS_HANDLER` (optional) | The URL that Cloud Tasks will call to process a job. This should be the URL to your Laravel app. By default we will use the URL that dispatched the job. | `https://<your website>.com`
82+
| `CLOUD_TASKS_SERVICE_EMAIL` (optional) | The email address of the service account. Important, it should have the correct roles. See the section below which roles. | `[email protected]`
83+
| `CLOUD_TASKS_HANDLER` (optional) | The URL that Cloud Tasks will call to process a job. This should be the URL to your Laravel app. By default we will use the URL that dispatched the job. | `https://<your website>.com`
8484

8585
</details>
8686

config/cloud-tasks.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
return [
66
// The URI of the endpoint that will handle the task
7-
'uri' => env('STACKKIT_CLOUD_TASKS_URI', 'handle-task'),
7+
'uri' => env('CLOUD_TASKS_URI', 'handle-task'),
88

99
// If the application only dispatches jobs
10-
'disable_task_handler' => env('STACKKIT_CLOUD_TASKS_DISABLE_TASK_HANDLER', false),
10+
'disable_task_handler' => env('CLOUD_TASKS_DISABLE_TASK_HANDLER', false),
1111
];

0 commit comments

Comments
 (0)