afom / deploy-notifier
Laravel 的部署通知器。
1.0.5
2016-12-21 14:21 UTC
Requires
- gorkalaucirica/hipchat-v2-api-client: ^1.5
- illuminate/console: ^5.0,<5.5
- illuminate/support: ^5.0,<5.5
Requires (Dev)
- phpunit/phpunit: ~5.0
This package is not auto-updated.
Last update: 2024-09-28 19:26:16 UTC
README
我们使用部署通知器将部署通知发送到我们的源代码,以便进行沟通。此包目前仅支持 HipChat。欢迎您创建“pull requests”来添加更多通知器。
用法
将以下设置添加到 .env
可用颜色: "yellow", "green", "red", "purple", "gray", "random"。
DEPLOY_NOTIFIER=hipchat
DEPLOY_NOTIFIER_COLOR=purple
DEPLOY_NOTIFIER_SENDER=Project X
DEPLOY_NOTIFIER_HIPCHAT_ROOM_ID=1111111
DEPLOY_NOTIFIER_HIPCHAT_ROOM_TOKEN=YourRoomToken
安装此包
composer require afom/deploy-notifier
将服务提供者添加到 config/app.php
Afom\DeployNotifier\DeployNotifierServiceProvider::class,
供应商发布
php artisan vendor:publish
使用 php artisan 触发通知
php artisan send:deploy:notification
或手动操作
$message = new \Afom\DeployNotifier\Message('Project X', 'Project X has been deployed to staging', 'gray'); $notifier = app(DeployNotifierInterface::class); $notifier->sendNotification($message);
有疑问吗?
如果您有任何疑问,可以通过 development@afriendofmine.nl 联系我们。