pre发布
- 更新脚本
#!/bin/bash
cd `dirname $0`
currentPath=`pwd`
cd /home/www/dajx-api
git fetch --all
git checkout sprint8.6
git pull
cd /home/www/biglove-cms
git fetch --all
git checkout sprint8.6
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
-
sql更新 sprint8.6sql更新
-
配置修改并导入
-
热更上传
-
热更配置修改
online发布
- 更新脚本
#!/bin/bash
cd `dirname $0`
currentPath=`pwd`
cd /home/www/dajx-api
git fetch --all
git checkout sprint8.6
git pull
cd /home/www/biglove-cms
git fetch --all
git checkout sprint8.6
git pull
cd /home/www && chown -R www.www biglove-cms dajx-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.更换了logo和名字;',
'2.更换了主题颜色;',
'3.修改了服务界面;',
'4.修改了产品详情界面;',
'5.其他已知问题的修复;'],
客户端更新公告:
1.更换了logo和名字;
2.更换了主题颜色;
3.修改了服务界面;
4.修改了产品详情界面;
5.其他已知问题的修复;
- apk上传
- 热更新配置