打包后,某个页面出错,好像未打包进去

foggy

问题描述

二进制打包,其他页面访问都正常,但有一个页面访问出错

webman/console 的版本是 v1.2.35

执行的打包命令:php webman build:bin 8.0

运行项目的服务器是centos 7 , PHP版本为8.0

程序代码

return [
    'enable' => true,

    'build_dir'  => BASE_PATH . DIRECTORY_SEPARATOR . 'build',

    'phar_filename' => 'webman.phar',

    'bin_filename' => 'webman.bin',

    'signature_algorithm'=> Phar::SHA256, //set the signature algorithm for a phar and apply it. The signature algorithm must be one of Phar::MD5, Phar::SHA1, Phar::SHA256, Phar::SHA512, or Phar::OPENSSL.

    'private_key_file'  => '', // The file path for certificate or OpenSSL private key file.

    'exclude_pattern'   => '#^(?!.*(composer.json|/.github/|/.idea/|/.git/|/.setting/|/runtime/|/vendor-bin/|/build/|/vendor/webman/admin/))(.*)$#',

    'exclude_files'     => [
        '.env', 'LICENSE', 'composer.json', 'composer.lock', 'start.php', 'webman.phar', 'webman.bin', 'key.key'
    ]
];

报错信息

ErrorException: include(phar:///home/www/wwwroot/jsg8/webman.bin/plugin/admin/app/view/Test/vavle.html): Failed to open stream: phar error: "plugin/admin/app/view/Test/vavle.html" is not a file in phar

截图报错信息里报错文件相关代码

截图

下面是目录结构
截图

553 0 0
0个回答

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