linux 如何打包代码

时间:2023-03-09 13:22:16
linux 如何打包代码

去 php-pear-YC-Rcs-Base.spec.in 文件中 找到版本号 修改 +1 如下图:
linux 如何打包代码

将它提交 并在 git commit -m “release 1.0.3”

然后去打包的环境里 我的环境 原来的开发机上 执行:

sudo su - archtest  切换用户

ls

cd mkrpm

ls

./mk-common-php.py会显示列表

./mk-common-php.py php-pear-YC-Rcs-Base 找到你的包作为参数执行

打包完成

然后安装包

sudo yum update php-pear-YC-Rcs-Base(包名称)

好了 ,可以了。

重启服务器

sudo service psf-renginehbh restart

nginx-restart

sudo service nginx restart

如果修改其他代码

到 www

ycgit pull

完成