caasdata / tars-deploy
There is no license information available for the latest version (0.1.1) of this package.
tarsphp 打包
0.1.1
2018-12-25 09:36 UTC
Requires
- php: >=5.3
This package is auto-updated.
Last update: 2024-04-25 21:31:39 UTC
README
1、需要Phar扩展 2、保证项目下面的./tars/tars.proto.php 文件的存在,并且包含下面内容
return array(
'appName' => 'APPNAME', //app名称 如tars.tarsconfig中的tars
'serverName' => 'SERVERNAME', //服务名 如tars.tarsconfig中的tarsconfig
...
);
3、引入tars-deploy到项目的 composer.json 里面。 4、在项目composer.json里面加入下面内容:
"scripts": {
"deploy": "\\Tars\\deploy\\Deploy::run"
}
5、在项目目录执行下面命令,生成待上传的项目压缩包。
composer run-script deploy