Article From:https://www.cnblogs.com/orpheus89/p/9394006.html

A web management platform for managing and maintaining satis repository

composer
composer create-project playbloom/satisfy –stability=dev

satis.json To configure
New satis.json in Project Root directory
Configure satis.json content:

{
“name”: “Personal Repository”,
“homepage”: “http://packages.xx.xx.xx.com:8000”,
“repositories”: [
{
“type”: “vcs”,
“url”: “ssh://git@xx.xx.xx.xx:9022/server-web-phplib/cutils.git”
},
{
“type”: “vcs”,
“url”: “ssh://git@xx.xx.xx.xx:9022/server-web-phplib/qup.git”
}
],
“require-all”: true,
“archive”: {
“directory”: “dist”,
“format”: “tar”,
“skip-dev”: true,
“whitelist”: [],
“blacklist”: [],
“checksum”: true
}
}

AppTo configure
move app/config.php.dist app/config.php
Modify $app[‘repository.pattern’] =’ssh://git@1xx.xx.xx.xx:9022/[a-zA-Z0-9-_./]+.git’;
Modify $app[‘auth.use_login_form’] = true;

Configure $app[‘auth.users’] user password

(Information) the password for online admin is XXXXX.

nginx To configure
{
listen 8360;
server_name packages.xx.xx.xx.com;

access_log logs/access.log;
error_log logs/error.log;
root /home/q/system/satis/web/;

location / {
    if (!-f $request_filename) {
        rewrite ^/(.*)$ /index.php last;
    }
}

location ~ \.php$ {
fastcgi_pass    127.0.0.1:9000;
include         fastcgi.conf;
fastcgi_param   PROJECT_INCLUDE_PATH  ".:/usr/local/php-7.1.11/lib/php";
}

}

ok

Link of this Article: satisfy

Leave a Reply

Your email address will not be published. Required fields are marked *