dreamzml/yii2-simplegitpublish

yii2 git publish test system

1.4.3 2019-09-11 09:44 UTC

This package is not auto-updated.

Last update: 2024-05-12 01:53:50 UTC


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