Simple Git publish
This Module Extension for Yii 2, Small teams, multi project development, testing model, (*1)
For license information check the LICENSE-file., (*2)
Installation
The preferred way to install this extension is through composer., (*3)
Either run, (*4)
php composer.phar require dreamzml/yii2-simplegitpublish --prefer-dist
or add, (*5)
"dreamzml/yii2-simplegitpublish": "*"
to the require-dev section of your composer.json
file., (*6)
Usage
Once the extension is installed, simply modify your application configuration as follows:, (*7)
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:, (*8)
http://localhost/path/to/index.php?r=gitpublish
or if you have enabled pretty URLs, you may use the following URL:, (*9)
http://localhost/path/to/index.php/gitpublish