Uninote
Uninote
用户根目录

powder-部署文档

打包

# 进入 powder 项目根目录,执行 build
npm run build
# 完成后打包 dist 目录,上传到 mynote-tp 服务器的 /home/www/powder 目录下,刷新即可看到效果:

访问地址,注意修改必要的参数

http://powder.dajxyl.com/?phone=13320817857&staff_id=62&phone_staff=13778707887&passwd_staff=123456&api=client%2Fshop%2Forder&select=pay&mi=scms%3Aclient%2Fshop#/

注意

所有的接口访问,都是代理到 dev(https://dev.*.dajxyl.com) 环境,如果需要代理到其他环境,需求修改 nginx 配置(powder.conf)

代理配置

server{
    server_name powder.dajxyl.com;
    location / {
        root /home/www/powder;
	try_files $uri $uri/ /index.html;
        index   index.html;
        charset utf-8;
    }
    access_log  logs/powder.access.log;
    error_log   logs/powder.error.log;
    location /api {
	rewrite /api/(.*)$ /$1 break;
	proxy_pass https://dev.api.dajxyl.com;
	proxy_set_header Host      $proxy_host;
	proxy_set_header X-Real-IP $remote_addr;
    }

    location  /staffapi {
	rewrite /staffapi/(.*)$ /$1 break;
	proxy_pass https://dev.staffapi.dajxyl.com;
	proxy_set_header Host      $proxy_host;
	proxy_set_header X-Real-IP $remote_addr;
    }

    location  /cmsapi {
	rewrite /cmsapi/(.*)$ /$1 break;
	proxy_pass https://dev.admin.dajxyl.com;
	proxy_set_header Host      $proxy_host;
	proxy_set_header X-Real-IP $remote_addr;
    }

    location  /scmsapi {
	rewrite /scmsapi/(.*)$ /$1 break;
	proxy_pass https://dev.s.dajxyl.com;
	proxy_set_header Host      $proxy_host;
	proxy_set_header X-Real-IP $remote_addr;
    }
}

powder-规范

powder-问题示例

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