Uninote
Uninote

发布来源

pre发布

  • 更新脚本
#!/bin/bash
cd `dirname $0`
currentPath=`pwd`
cd /home/www/dajx-api
git fetch --all
git checkout sprint8.5
git pull
cd /home/www/biglove-cms
git fetch --all
git checkout sprint8.5
git pull
cd /home/www && chown -R www.www biglove-cms dajx-api
cd $currentPath
tar xf letsencrypt.pre.tar.gz -C /etc/
dajx_api_host=pre.api.dajxyl.com
dajx_staff_api_host=pre.staffapi.dajxyl.com
dajx_cms_host=pre.admin.dajxyl.com
dajx_www_host=pre.www.dajxyl.com
front_host=$dajx_api_host
gt_api=dajx_api_pre_
gt_staffapi=dajx_staff_api_pre_
# pre设置后台密码为root123.和赋予reader账号所有权限
mysql -uroot -proot -e "grant all privileges on *.* to reader@'%';flush privileges;use biglove;update admin set password='203aeace9b9ed0b1a79ae1641d556b29' where id=1;"
        sed -i "s#https://staffapi.dajxyl.com#https://$dajx_staff_api_host#" /home/www/additional_item/logviewer/logs.php
        sed -i "s#https://api.dajxyl.com#https://$dajx_api_host#" /home/www/additional_item/logviewer/logs.php
        sed -i "s#https://api.dajxyl.com#https://$dajx_api_host#g" /home/www/biglove-cms/cms/config/__params.php
        sed -i "s#https://staffapi.dajxyl.com#https://$dajx_staff_api_host#g" /home/www/biglove-cms/cms/config/__params.php
        sed -i "s#dajx_api_#$gt_api#g" /home/www/biglove-cms/cms/config/__params.php
        sed -i "s#dajx_staff_#$gt_staffapi#g" /home/www/biglove-cms/cms/config/__params.php
        sed -i "s#/live/admin.dajxyl.com#/live/$dajx_cms_host#" /home/www/biglove-workerman/Config/__config.php
        sed -i "s#dajx_staff_api_#$gt_staffapi#" /home/www/biglove-workerman/Config/__config.php
        sed -i "s#dajx_api_#$gt_api#" /home/www/biglove-workerman/Config/__config.php
        sed -i "s#staffapi.dajxyl.com#$dajx_staff_api_host#g" /home/www/dajx-staff-api/config/__params.php
        sed -i "s#dajx_staff_api_#$gt_staffapi#g" /home/www/dajx-staff-api/config/__params.php
        sed -i "s#dajx_api_#$gt_api#g" /home/www/dajx-staff-api/config/__params.php
        sed -i "s#https://www.dajxyl.com/#https://$dajx_www_host/#" /home/www/dajx-api/config/__params.php
        sed -i "s#dajx_staff_api_#$gt_staffapi#g" /home/www/dajx-api/config/__params.php
        sed -i "s#dajx_staff_#$gt_staffapi#g" /home/www/dajx-api/config/__params.php
        sed -i "s#https://api.dajxyl.com#https://$dajx_api_host#g" /home/www/dajx-api/config/__params.php
        sed -i "s#live/api.dajxyl.com#live/$dajx_api_host#g" /usr/local/nginx/conf/vhost/dajx_api_ssl.conf
        sed -i "s#server_name api.dajxyl.com#server_name $dajx_api_host#g" /usr/local/nginx/conf/vhost/dajx_api_ssl.conf
        sed -i "s#server_name admin.dajxyl.com#server_name $dajx_cms_host#g" /usr/local/nginx/conf/vhost/dajx_cms_ssl.conf
        sed -i "s#live/admin.dajxyl.com#live/$dajx_cms_host#g" /usr/local/nginx/conf/vhost/dajx_cms_ssl.conf
        sed -i "s#server_name staffapi.dajxyl.com#server_name $dajx_staff_api_host#g" /usr/local/nginx/conf/vhost/dajx_staff_api_ssl.conf
        sed -i "s#live/staffapi.dajxyl.com#live/$dajx_staff_api_host#g" /usr/local/nginx/conf/vhost/dajx_staff_api_ssl.conf
        sed -i "s#server_name www.dajxyl.com#server_name $dajx_www_host#g" /usr/local/nginx/conf/vhost/dajx_www_ssl.conf
        sed -i "s#live/www.dajxyl.com#live/$dajx_www_host#g" /usr/local/nginx/conf/vhost/dajx_www_ssl.conf
        sed -i "s#https://www.dajxyl.com#https://$dajx_www_host#g" /usr/local/nginx/conf/vhost/dajx_www_ssl.conf
        nginx -s reload
# test2 config dump to git
[ ! -d /server/scripts ] && mkdir -p /server/scripts
cd /server/scripts && rm -rf ./*
git clone git@git.dajxyl.com:dajx/prj-utils.git . && rm -rf .git
bash dumpconfig.sh pre root

online发布

  • 更新脚本
#!/bin/bash
cd `dirname $0`
currentPath=`pwd`
cd /home/www/dajx-api
git fetch --all
git checkout sprint8.5
git pull
cd /home/www/biglove-cms
git fetch --all
git checkout sprint8.5
git pull
cd /home/www/dajx-staff-api
git fetch --all
git checkout sprint8.5
git pull
cd /home/www && chown -R www.www biglove-cms dajx-api dajx-staff-api
[ ! -d /server/scripts ] && mkdir -p /server/scripts
cd /server/scripts && rm -rf ./*
git clone git@git.dajxyl.com:dajx/prj-utils.git . && rm -rf .git
bash dumpconfig.sh online root
  • 配置修改和导入
'1.增加了隐私号码保护机制功能,使用虚拟号码拨打电话;',
'2.修改了地址的地图配置界面;',
'3.增加了一键登录功能;',
'4.其他已知问题的优化;'],

1.增加了隐私号码保护机制功能,使用虚拟号码拨打电话;
2.修改了地址的地图配置界面;
3.增加了一键登录功能;
4.其他已知问题的优化;
  • apk上传
  • 热更新配置

迭代7发布报告

迭代8.6发布报告

点赞(0) 阅读(1) 举报
目录
标题