webman-admin 二进制打包之后上传出错

ersic

问题描述

webman-admin 二进制打包之后上传出错
看到有类似的帖子说修改 public 目录

报错信息

910 2 0
2个回答

wekyun

问下道友解决了吗

  • sdffghy 2023-08-25

    如果你的业务需要上传文件到public目录,也需要将public目录独立出来放在webman.phar所在目录,这时候需要配置config/app.php中的public_path选项。

    'public_path' => base_path(false) . DIRECTORY_SEPARATOR . 'public',
    业务可以使用助手函数public_path()找到实际的public目录位置。

    https://www.workerman.net/doc/webman/others/phar.html

  • wekyun 2023-08-29

    base_path(false)

年代过于久远,无法发表回答
🔝