dreamzml / yii2-simplegitpublish
yii2 git publish test system
Package info
github.com/dreamzml/yii2-simplegitpublish
Type:project
pkg:composer/dreamzml/yii2-simplegitpublish
1.4.3
2019-09-11 09:44 UTC
Requires
- bower-asset/typeahead.js: 0.10.* | ~0.11.0
- yiisoft/yii2: *
- yiisoft/yii2-bootstrap: *
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
This Module Extension for Yii 2, Small teams, multi project development, testing model
For license information check the LICENSE-file.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require dreamzml/yii2-simplegitpublish --prefer-dist
or add
"dreamzml/yii2-simplegitpublish": "*"
to the require-dev section of your composer.json file.
Usage
Once the extension is installed, simply modify your application configuration as follows:
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 ], ], // ... ];
You can then access Gii through the following URL:
http://localhost/path/to/index.php?r=gitpublish
or if you have enabled pretty URLs, you may use the following URL:
http://localhost/path/to/index.php/gitpublish