0
点赞
收藏
分享

微信扫一扫

ABAP关于PS模块CJ20N中项目物料的屏幕和字段增强CI_RSADD

凯约 2024-11-13 阅读 13

使用nginx处理

我的环境
Apple M3 Max
14.1 (23B2073)

  1. 安装nginx
brew install nginx
  1. 找到nginx.conf文件
/opt/homebrew/etc/nginx/nginx.conf
  1. 增加server
server {
    listen 8091;  # 或者其他未被占用的端口
    server_name localhost;

    location / {
        root /path/to/your/project/unpackage/dist/build/h5;
        index index.html;
        try_files $uri $uri/ /index.html;  # 支持单页应用的前端路由
    }
}
  1. 保存文件,启动nginx
nginx
  1. 备用
nginx -s reload // 重启nginx
nginx -s stop // 停止nginx
举报

相关推荐

0 条评论