首页 » 技术分享 » satisfy

satisfy

 

一个管理维护satis仓库的web 管理平台

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

satis.json 配置
在Project Root目录新建 satis.json
配置satis.json 内容:

{
"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
}
}

App配置
move app/config.php.dist app/config.php
修改 $app['repository.pattern'] = 'ssh://git@1xx.xx.xx.xx:9022/[a-zA-Z0-9-_./]+.git';
修改 $app['auth.use_login_form'] = true;

配置 $app['auth.users'] 用户密码

(信息) 目前线上admin的密码是xxxxx

nginx 配置
{
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

转载自原文链接, 如需删除请联系管理员。

原文链接:satisfy,转载请注明来源!

0