二进制打包,其他页面访问都正常,但有一个页面访问出错
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
下面是目录结构