Git Product home page Git Product logo

bi's Introduction

CaptainBI Hyperf 公共组件库

安装

composer require captainbi/hyperf:dev-master

发布组件

php bin/hyperf.php vendor:publish captainbi/hyperf

Apollo 组件使用说明

修改 apollo 配置,通过 .env 文件进行配置

## 配置文件路径 config/autoload/apollo.php

# 是否开启 apollo
APOLLO_ENABLE=true
# apollo 服务器地址
APOLLO_SERVER=http://127.0.0.1:8080
# apollo appid
APOLLO_APPID=abcdefghijklmn
# 要拉取的 apollo 配置 namespaces,多个使用 英文逗号 , 分隔
APOLLO_NAMESPACES="application,database.json,redis.yml"

apollo 组件基于 hyperf 官方的 config-apollo 组件进行修改,只支持 2.1 版本,2.2 版本推荐使用 config-center

具体区别与使用方式见 内网Wiki hyperf 2.1 apollo 配置及使用说明

重启服务 组件使用说明

修改 重启服务 配置,通过 .env 文件进行配置

## 配置文件路径 config/autoload/restart_console.php

# 热重启启动脚本路径,默认在 bin/restart.php
RESTART_CONSOLE_SCRIPT=
# 热重启等待进程退出超时时间,单位 秒,可选值 3-60,默认 60秒
RESTART_CONSOLE_TIMEOUT=60

# 热重启失败发送警报的钉钉机器人 access token
RESTART_CONSOLE_DD_TOKEN=
# 热重启失败发送警报的钉钉机器人 api secret,安全设置 中使用 '加签' 模式的话,此配置不能为空
RESTART_CONSOLE_DD_SECRET=
# 热重启失败发送警报的钉钉机器人 消息,可使用的占位符见 config/autoload/restart_console.php 说明,可为空
RESTART_CONSOLE_DD_MESSAGE=

钉钉机器人详细说明见 自定义机器人接入

bi's People

Contributors

ahendaxia avatar jmiy avatar dly209 avatar consatan avatar sam-vip avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.