官方文档和官方源
官方文档:https://getcomposer.org/doc/articles/handling-private-packages-with-satis.md
github地址:https://github.com/composer/satis
下载源
- 方法一
git clone https://github.com/composer/satis.git
cd satis && composer update
- 方法二
composer create-project composer/satis:dev-master
写satis.json配置
- 生成satis.json文件
touch satis.json
- 写入配置
{
"name": "chunpat packages",
"homepage": "http://packages.example.org",
"repositories": [
{
"type": "git",
"url": "https://github.com/FromChinaBoy/Export.git"
},
{
"type": "composer",
"url": "https://packagist.laravel-china.org"
}
],
"require": {
"chunpat/export": "dev-master",
"topthink/framework": "5.1.*"
}
}
运行
- 生成静态页面和更新源
php bin/satis build satis.json ./public
执行命令后会生成public文件夹,下面有静态文件
部署站点
- php cli部署
php -S localhost:8866 -t ./public
- nginx 部署
略
额外
- linux crontab定时器实时更新
略
本作品采用CC BY-NC-ND 4.0进行许可。转载,请注明原作者 chunpat 及本文源链接。