2020-10-02 00:11:13 +02:00
|
|
|
<!-- DO NOT EDIT THIS FILE! -->
|
|
|
|
<!-- Instead edit contrib/rabbit.php -->
|
|
|
|
<!-- Then run bin/docgen -->
|
|
|
|
|
|
|
|
# rabbit
|
|
|
|
|
|
|
|
[Source](/contrib/rabbit.php)
|
|
|
|
|
|
|
|
|
|
|
|
### Installing
|
|
|
|
|
|
|
|
```php
|
|
|
|
deploy.php
|
|
|
|
|
|
|
|
require 'recipe/rabbit.php';
|
|
|
|
```
|
|
|
|
|
|
|
|
### Configuration options
|
|
|
|
|
|
|
|
- **rabbit** *(required)*: accepts an *array* with the connection information to [rabbitmq](http://www.rabbitmq.com) server token and team name.
|
|
|
|
|
|
|
|
|
|
|
|
You can provide also other configuration options:
|
|
|
|
|
|
|
|
- *host* - default is localhost
|
|
|
|
- *port* - default is 5672
|
|
|
|
- *username* - default is *guest*
|
|
|
|
- *password* - default is *guest*
|
|
|
|
- *channel* - no default value, need to be specified via config
|
|
|
|
- *message* - default is **Deployment to '{$host}' on *{$prod}* was successful\n($releasePath)**
|
|
|
|
- *vhost* - default is
|
|
|
|
|
|
|
|
|
|
|
|
```php
|
|
|
|
deploy.php
|
|
|
|
|
|
|
|
set('rabbit', [
|
|
|
|
'host' => 'localhost',
|
|
|
|
'port' => '5672',
|
|
|
|
'username' => 'guest',
|
|
|
|
'password' => 'guest',
|
|
|
|
'channel' => 'notify-channel',
|
|
|
|
'vhost' => '/my-app'
|
|
|
|
]);
|
|
|
|
```
|
|
|
|
|
|
|
|
### Suggested Usage
|
|
|
|
|
|
|
|
Since you should only notify RabbitMQ channel of a successful deployment, the `deploy:rabbit` task should be executed right at the end.
|
|
|
|
|
|
|
|
```php
|
|
|
|
deploy.php
|
|
|
|
|
|
|
|
before('deploy:end', 'deploy:rabbit');
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
* Tasks
|
2021-08-31 20:15:06 +02:00
|
|
|
* [deploy:rabbit](#deployrabbit) — Notifying RabbitMQ channel about deployment
|
2020-10-02 00:11:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
## Tasks
|
|
|
|
### deploy:rabbit
|
2020-11-16 10:56:42 +01:00
|
|
|
[Source](https://github.com/deployphp/deployer/search?q=%22deploy%3Arabbit%22+in%3Afile+language%3Aphp+path%3Acontrib+filename%3Arabbit.php)
|
2020-10-02 00:11:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-31 20:15:06 +02:00
|
|
|
|