dreamzml / yii2-simplegitpublish
yii2 git 发布测试系统
1.4.3
2019-09-11 09:44 UTC
Requires
- bower-asset/typeahead.js: 0.10.* | ~0.11.0
- yiisoft/yii2: *
- yiisoft/yii2-bootstrap: *
README
这是一个针对 Yii 2 的模块扩展,适用于小型团队、多项目开发、测试模型。
有关许可证信息,请查看LICENSE文件。
安装
安装此扩展的首选方式是通过 composer。
运行以下命令
php composer.phar require dreamzml/yii2-simplegitpublish --prefer-dist
或者在您的 composer.json
文件的 require-dev 部分添加
"dreamzml/yii2-simplegitpublish": "*"
。
使用方法
安装扩展后,只需按以下方式修改您的应用程序配置
return [ 'modules' => [ 'gitpublish' => [ 'class' => 'dreamzml\SimpleGitPublish\Module', 'allowedIPs' => ['127.0.0.1', '::1'], // if set ['*'] allow all ip 'monitors' => [ 'MASTER'=>'123456', // MASTER allow push to master branch 'TESTER'=>'111', ], //allow users, if set * allow all user ], ], // ... ];
您可以通过以下 URL 访问 Gii
https:///path/to/index.php?r=gitpublish
如果已启用美观的 URL,您也可以使用以下 URL
https:///path/to/index.php/gitpublish